diff options
Diffstat (limited to 'svelte.config.js')
-rw-r--r-- | svelte.config.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/svelte.config.js b/svelte.config.js index 31ba570..9af5c40 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -41,6 +41,16 @@ const config = { }, }, }, + // 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, + }, + } + : {}, }, } } |