deprived-main-website/vite.config.js
BOTAlex 9192790978
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 20s
Slight updates to cv rev3
2025-06-10 12:23:34 +00:00

31 lines
750 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"),
},
},
server: {
allowedHosts: ["development2.deprived.dev"],
},
});