39 lines
1.2 KiB
JavaScript
39 lines
1.2 KiB
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: {
|
|
angebote: fileURLToPath(
|
|
new URL("./angebotsuebersicht.html", import.meta.url),
|
|
),
|
|
details: fileURLToPath(
|
|
new URL("./paket-details.html", import.meta.url),
|
|
),
|
|
main: fileURLToPath(new URL("./index.html", import.meta.url)),
|
|
bookingConfirmation: fileURLToPath(
|
|
new URL("./booking-confirmation.html", import.meta.url),
|
|
),
|
|
booking: fileURLToPath(
|
|
new URL("./booking.html", import.meta.url),
|
|
),
|
|
},
|
|
},
|
|
},
|
|
});
|