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:
@@ -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 } },
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user