Fix vite dev env incompatible with ssl protocol

This commit is contained in:
Marcos 2022-03-18 19:43:03 +01:00 committed by Georg Krause
parent 182f766fc0
commit 62cf593b2b
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ export default defineConfig({
server: { server: {
port: process.env.VUE_PORT || '8080', port: process.env.VUE_PORT || '8080',
hmr: { hmr: {
port: '8000', port: process.env.FUNKWHALE_PROTOCOL === 'https' ? 443 : 8000,
protocol: 'ws', protocol: process.env.FUNKWHALE_PROTOCOL === 'https' ? 'wss' : 'ws',
} }
}, },
resolve: { resolve: {