deprived-main-website/vite.config.js
MagicBOTAlex 3c54f7cdd1
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 20s
Adding another fucking project structure lol. we got like 3 now
2025-07-05 02:52:17 +08:00

33 lines
844 B
JavaScript

import tailwindcss from "@tailwindcss/vite";
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import path from "path";
const buildTime = new Intl.DateTimeFormat("da-DK", {
day: "2-digit",
month: "2-digit",
year: "numeric",
hour: "2-digit",
minute: "2-digit",
hour12: false,
timeZone: "Europe/Copenhagen",
}).format(new Date());
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
define: {
__BUILD_TIME__: JSON.stringify(buildTime),
},
resolve: {
alias: {
"@images": path.resolve("./src/images"),
"@src": path.resolve("./src"),
"@static": path.resolve("./static"),
"@pages": path.resolve("./src/pages"),
"@shop": path.resolve("./src/pages/shop"),
},
},
server: {
allowedHosts: ["development2.deprived.dev"],
},
});