flotilla/svelte.config.js

29 lines
712 B
JavaScript
Raw Normal View History

2024-08-21 20:20:59 +00:00
import adapter from "@sveltejs/adapter-static"
2024-08-05 22:28:46 +00:00
import {vitePreprocess} from "@sveltejs/vite-plugin-svelte"
2024-08-01 23:49:32 +00:00
/** @type {import('@sveltejs/kit').Config} */
2024-08-21 20:20:59 +00:00
export default {
2024-08-05 22:28:46 +00:00
preprocess: vitePreprocess(),
kit: {
2024-08-21 20:20:59 +00:00
adapter: adapter({
2024-08-26 21:43:43 +00:00
fallback: "index.html",
2024-08-21 20:20:59 +00:00
}),
2024-08-05 22:28:46 +00:00
alias: {
2024-08-06 22:46:37 +00:00
"@src": "src",
"@app": "src/app",
"@lib": "src/lib",
"@assets": "src/assets",
2024-08-05 22:25:04 +00:00
},
2024-10-22 23:23:54 +00:00
csp: {
directives: {
'script-src': ['self', 'plausible.io'],
'worker-src': ['self', 'blob:'],
'style-src': ['self', 'unsafe-inline'],
'frame-src': ['open.spotify.com', 'embed.tidal.com'],
'child-src': ['none'],
'form-action': ['none'],
},
},
2024-08-05 22:28:46 +00:00
},
}