trihub-ernaehrung-backseatDevs/vite.config.js

30 lines
790 B
JavaScript

import { defineConfig } from "vite";
import { fileURLToPath } from "node:url";
export default defineConfig({
server: {
proxy: { "/api": "http://127.0.0.1:3000" },
fs: {
// Auch Vites direkten Dateizugriff auf das Projekt absichern.
deny: [
".env",
".env.*",
"*.{crt,pem}",
"**/.git/**",
"**/server/**",
"**/tests/**",
],
},
},
build: {
rollupOptions: {
input: {
main: fileURLToPath(new URL("./index.html", import.meta.url)),
booking: fileURLToPath(
new URL("./booking.html", import.meta.url),
),
},
},
},
});