diff options
Diffstat (limited to 'svelte.config.js')
-rw-r--r-- | svelte.config.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/svelte.config.js b/svelte.config.js index 222cd8f..8d97638 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -45,10 +45,13 @@ const config = { server: process.env.REPL_ID || process.env.GITPOD_WORKSPACE_ID ? { - hmr: { - protocol: 'wss', - port: 3001, - }, + hmr: process.env.GITPOD_WORKSPACE_URL + ? { + host: process.env.GITPOD_WORKSPACE_URL.replace('https://', '3000-'), + protocol: "wss", + clientPort: 443 + } + : true } : {}, }, |