fix(uat): allow Cloudflare quick-tunnel Host on vite preview

So phone/laptop without Tailscale can hit overnight UAT via trycloudflare.com.
This commit is contained in:
grokbot_ty
2026-09-25 22:01:44 -07:00
parent 2ac0f6f48e
commit 6caa4f62e7
+2
View File
@@ -10,6 +10,8 @@ export default defineConfig({
proxy: { '/api': { target: 'http://127.0.0.1:18182', changeOrigin: true } }, proxy: { '/api': { target: 'http://127.0.0.1:18182', changeOrigin: true } },
}, },
preview: { preview: {
// Cloudflare quick tunnel Host header (public UAT without Tailscale)
allowedHosts: true,
proxy: { '/api': { target: 'http://127.0.0.1:18182', changeOrigin: true } }, proxy: { '/api': { target: 'http://127.0.0.1:18182', changeOrigin: true } },
}, },
}); });