From 5db898951d2ae8e1a6c622968b70dea931a62f9f Mon Sep 17 00:00:00 2001 From: David Featherston Date: Tue, 10 Dec 2024 09:31:41 +1100 Subject: [PATCH] fix(nuxt-app): temporary fix for HMR --- examples/nuxt-app/nuxt.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/nuxt-app/nuxt.config.ts b/examples/nuxt-app/nuxt.config.ts index b306f8f43..18df9d0ff 100644 --- a/examples/nuxt-app/nuxt.config.ts +++ b/examples/nuxt-app/nuxt.config.ts @@ -31,5 +31,13 @@ export default defineNuxtConfig({ sourcemap: true, devtools: { enabled: false + }, + // Vite HMR temporary fix - see https://github.com/nuxt/nuxt/discussions/27779 + vite: { + server: { + hmr: { + clientPort: 3000 + } + } } })