From 3392ce0af334694871542b5e3dda49d32ce41efb Mon Sep 17 00:00:00 2001 From: "railway-app[bot]" <68434857+railway-app[bot]@users.noreply.github.com> Date: Sun, 22 Mar 2026 08:41:35 +0000 Subject: [PATCH] fix: add Railway domain to vite.config.ts preview allowedHosts --- vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 0506f1b..b0925cf 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,8 +17,11 @@ export default defineConfig(({mode}) => { }, server: { // HMR is disabled in AI Studio via DISABLE_HMR env var. - // Do not modify—file watching is disabled to prevent flickering during agent edits. + // Do not modify—file watching is disabled to prevent flickering during agent edits. hmr: process.env.DISABLE_HMR !== 'true', }, + preview: { + allowedHosts: ['neuron-second-brain-production.up.railway.app', 'localhost'], + }, }; });