From 1c0eb70f0fbbe1793218fd8afc8cc579fcd2e574 Mon Sep 17 00:00:00 2001 From: PolyCity Date: Sun, 23 Aug 2026 01:04:23 +0000 Subject: [PATCH] preview server: accept any Host for public demo tunnels --- vite.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index d98d480..06b9209 100644 --- a/vite.config.js +++ b/vite.config.js @@ -16,6 +16,9 @@ export default defineConfig({ }, preview: { port: 4173, - host: true + host: true, + // `vite preview` is our public demo server (trycloudflare etc.) — accept + // any Host header; static assets only, nothing to poison. + allowedHosts: true } });