Extreme optimize + bug fixes + prerendering fix + more deprecation
Some checks failed
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Failing after 1s

This commit is contained in:
BOTAlex 2025-10-02 07:36:41 +02:00
parent 28eea2d035
commit 4e2fe3700d
53 changed files with 324 additions and 1775 deletions

View file

@ -1,6 +1,5 @@
import tailwindcss from "@tailwindcss/vite";
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import sveltekit from "./src/optimizers/sveltekit.ts";
import path from "path";
const buildTime = new Intl.DateTimeFormat("da-DK", {
@ -13,7 +12,7 @@ const buildTime = new Intl.DateTimeFormat("da-DK", {
timeZone: "Europe/Copenhagen",
}).format(new Date());
export default defineConfig({
export default {
plugins: [tailwindcss(), sveltekit()],
define: {
__BUILD_TIME__: JSON.stringify(buildTime),
@ -27,9 +26,10 @@ export default defineConfig({
"@ts": path.resolve("./src/ts"),
"@shop": path.resolve("./src/pages/shop"),
"@stores": path.resolve("./src/ts/store.ts"),
"@e": path.resolve("./src/optimizers"),
},
},
server: {
allowedHosts: ["development2.deprived.dev"],
},
});
};