security: externalize astro scripts and styles

This commit is contained in:
ik
2026-09-13 15:14:21 +07:00
parent cd319a32c2
commit 14958be302
7 changed files with 29 additions and 22 deletions
+5
View File
@@ -7,4 +7,9 @@ export default defineConfig({
output: "server",
adapter: node({ mode: "standalone" }),
server: { host: true, port: 4321 },
vite: {
// Keep executable scripts and compiled component styles in same-origin
// assets so production CSP does not need broad inline allowances.
build: { assetsInlineLimit: 0 },
},
});