diff --git a/vite.config.js b/vite.config.js index bbf8c7d..3f4f78f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,5 +2,12 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], + server: { + hmr: { + protocol: process.env.HMR_PROTOCOL || 'ws', + host: process.env.HMR_HOST || null, + port: process.env.HMR_PORT || null, + }, + }, });