-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsvelte.config.js
32 lines (29 loc) · 893 Bytes
/
svelte.config.js
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
import adapter from '@sveltejs/adapter-node'
import { vitePreprocess } from '@sveltejs/kit/vite'
import { dirname, join } from 'path'
import { fileURLToPath } from 'url'
import 'dotenv/config'
const __dirname = dirname(fileURLToPath(import.meta.url))
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess({
style: {
css: {
postcss: join(__dirname, 'postcss.config.cjs')
}
}
}),
kit: {
adapter: adapter(),
alias: {
'$src/*': 'src/*'
},
// csp: {
// directives: {
// 'script-src': ['self', process.env.ORIGIN, 'https://challenges.cloudflare.com/', 'https://js.stripe.com/'],
// 'img-src': ['self', process.env.ORIGIN, 'data:', process.env.PUBLIC_IMAGE_BASE_URL, 'https://challenges.cloudflare.com/', 'https://js.stripe.com/'],
// }
// }
},
}
export default config