From 24b1e0aa57fbb91a02352261edf0290357927659 Mon Sep 17 00:00:00 2001 From: nmsderp <130254323+nmsderp@users.noreply.github.com> Date: Wed, 10 Jan 2024 19:35:14 -0500 Subject: [PATCH] Update vite.config.js --- vite.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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, + }, + }, });