fix: add litter.psbailey.uk to Vite allowed hosts

- Add server.allowedHosts configuration to vite.config.js
- Allow litter.psbailey.uk and all .psbailey.uk subdomains
- Enable host: true for external access

This fixes the 'Blocked request' error when accessing from the production domain.
This commit is contained in:
2025-11-17 01:41:18 +00:00
parent 9108def654
commit e6ee6adde5

View File

@@ -5,6 +5,14 @@ import path from 'path'
// https://vite.dev/config/
export default defineConfig({
server: {
host: true, // Allow external access
allowedHosts: [
'localhost',
'litter.psbailey.uk',
'.psbailey.uk', // Allow all subdomains
],
},
plugins: [
react(),
VitePWA({