diff --git a/front/vite.config.js b/front/vite.config.js index 0e23f8ba4..4d39ac660 100644 --- a/front/vite.config.js +++ b/front/vite.config.js @@ -29,8 +29,8 @@ export default defineConfig({ server: { port: process.env.VUE_PORT || '8080', hmr: { - port: '8000', - protocol: 'ws', + port: process.env.FUNKWHALE_PROTOCOL === 'https' ? 443 : 8000, + protocol: process.env.FUNKWHALE_PROTOCOL === 'https' ? 'wss' : 'ws', } }, resolve: {