flotilla/svelte.config.js

29 lines
693 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: {
2024-10-25 21:15:35 +00:00
"script-src": ["self", "plausible.coracle.social"],
2024-10-23 16:45:06 +00:00
"worker-src": ["self", "blob:"],
"style-src": ["self", "unsafe-inline"],
2024-10-25 21:15:35 +00:00
"frame-src": ["none"],
2024-10-23 16:45:06 +00:00
"child-src": ["none"],
"form-action": ["none"],
2024-10-22 23:23:54 +00:00
},
},
2024-08-05 22:28:46 +00:00
},
}