-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsvelte.config.js
More file actions
39 lines (35 loc) · 861 Bytes
/
svelte.config.js
File metadata and controls
39 lines (35 loc) · 861 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
33
34
35
36
37
38
39
import adapter from '@sveltejs/adapter-auto'
import preprocess from 'svelte-preprocess'
import dotenv from 'dotenv'
dotenv.config()
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
adapter: adapter(),
// https://vitejs.dev/config/
vite: {
build: {
rollupOptions: {
external: ['discord-api-types/payloads/v9', 'discord-api-types', 'discord-api-types/v9'],
output: {
manualChunks: undefined,
},
},
},
// if the user is on replit or gitpod, use a secure websocket
server:
process.env.REPL_ID || process.env.GITPOD_WORKSPACE_ID
? {
hmr: {
protocol: 'wss',
port: 443,
},
}
: {},
},
},
}
export default config