We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675aab0 commit 8a533d2Copy full SHA for 8a533d2
.gitpod.yml
@@ -1,6 +1,8 @@
1
tasks:
2
- init: npm install
3
- command: npm run dev
+ command: |
4
+ export HMR_HOST=`gp url 3000`
5
+ npm run dev
6
7
ports:
8
- port: 3000
svelte.config.js
@@ -11,7 +11,15 @@ const config = {
11
adapter: adapter(),
12
13
// hydrate the <div id="svelte"> element in src/app.html
14
- target: '#svelte'
+ target: '#svelte',
15
+ vite: {
16
+ server: {
17
+ hmr: {
18
+ clientPort: process.env.HMR_HOST ? 443: 3000,
19
+ host: process.env.HMR_HOST ? process.env.HMR_HOST.substring("https://".length) : "localhost"
20
+ }
21
22
23
}
24
};
25
0 commit comments