adapt preview setting

This commit is contained in:
Greg 2025-05-20 21:25:14 +02:00
parent bfaeba0cee
commit 0c633ae6c9

View File

@ -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