Tweak to dev/prod switch

This commit is contained in:
James Pattinson
2025-11-11 17:17:18 +00:00
parent d42b7cb307
commit be2426c078
3 changed files with 43 additions and 59 deletions

View File

@@ -7,7 +7,7 @@ export default defineConfig({
host: true,
port: 3000,
strictPort: true,
allowedHosts: ['sasaprod', 'localhost', 'members.sasalliance.org'],
allowedHosts: process.env.VITE_ALLOWED_HOSTS ? process.env.VITE_ALLOWED_HOSTS.split(',') : ['sasaprod', 'localhost'],
watch: {
usePolling: true
},