security: externalize astro scripts and styles
This commit is contained in:
@@ -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 },
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user