blob: 76377b17c12718648b3957affdf3b61c9a5d4038 (
plain)
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
|
import { sveltekit } from '@sveltejs/kit/vite'
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()],
build: {
rollupOptions: {
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: process.env.GITPOD_WORKSPACE_URL
? {
host: process.env.GITPOD_WORKSPACE_URL.replace('https://', '3000-'),
protocol: "wss",
clientPort: 443
}
: true
}
: {},
}
export default config
|