fix: availability of env variables

This commit is contained in:
Julian Krauser 2025-01-06 15:04:47 +01:00
parent fa45559127
commit f74c10d4aa
10 changed files with 78 additions and 10 deletions

View file

@ -41,4 +41,20 @@ export default defineConfig({
$: fileURLToPath(new URL("./docs", import.meta.url)),
},
},
build: {
rollupOptions: {
output: {
// Define the main output bundle (e.g., for your application)
entryFileNames: "[name]-[hash].js",
// Define the directory where the main bundle should be output
dir: "dist",
// Create a separate output bundle for your specific file
manualChunks(id) {
if (id.endsWith("src/config.ts")) {
return "config"; // This will create a separate bundle for config-[hash].js
}
},
},
},
},
});