-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
32 lines (30 loc) · 844 Bytes
/
svelte.config.js
File metadata and controls
32 lines (30 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Tauri doesn't have a Node.js server to do proper SSR
// so we will use adapter-static to prerender the app (SSG)
// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info
import adapter from "@sveltejs/adapter-static"
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({ fallback: "error.html" }),
csp: {
mode: "auto",
directives: {
"connect-src": [
"self",
"http://tauri.localhost",
"http://localhost:*",
"http://ipc.localhost",
"https://waspscripts.dev",
"https://db.waspscripts.dev",
"https://api.waspscripts.dev",
"ws://localhost:*",
"ws://db.waspscripts.dev",
"wss://db.waspscripts.dev"
]
}
}
}
}
export default config