preview server: accept any Host for public demo tunnels

This commit is contained in:
PolyCity
2026-08-23 01:04:23 +00:00
parent 60a92408bb
commit 1c0eb70f0f
+4 -1
View File
@@ -16,6 +16,9 @@ export default defineConfig({
}, },
preview: { preview: {
port: 4173, 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
} }
}); });