From 0c633ae6c99e7f13ccd6b98cbd3cbd32e5b38e0c Mon Sep 17 00:00:00 2001 From: Greg Date: Tue, 20 May 2025 21:25:14 +0200 Subject: [PATCH] adapt preview setting --- vite.config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index d08235a..14a9535 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,8 +1,12 @@ // vite.config.js export default { preview: { - // Allow ALL hosts - maximum flexibility for domain changes - allowedHosts: true + host: '0.0.0.0', // Ensure preview server also listens on all interfaces + allowedHosts: [ + 'fwo4c4cgkos8k8kk8ow44kcc.reflectonai.com', + // Add other specific domains if needed, or localhost for local testing + 'localhost' + ] }, server: { // Also configure the dev server to accept external connections