diff options
author | mat <github@matdoes.dev> | 2022-03-21 16:28:33 +0000 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-03-21 16:28:33 +0000 |
commit | 8b6896c6962d3ad371f5e17f1a3ab20364a5f855 (patch) | |
tree | d1c6c7d36dbb29bbf60c122f1248bd914ce6a44f /svelte.config.js | |
parent | 03897faa666349ece964c6c5166832ec5feeb38e (diff) | |
download | skyblock-stats-8b6896c6962d3ad371f5e17f1a3ab20364a5f855.tar.gz skyblock-stats-8b6896c6962d3ad371f5e17f1a3ab20364a5f855.tar.bz2 skyblock-stats-8b6896c6962d3ad371f5e17f1a3ab20364a5f855.zip |
bank improvements + reload fix for gitpod
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, + }, + } + : {}, }, } } |