config changes

This commit is contained in:
debu-2 2026-10-02 11:58:57 +05:30
parent 38eb2a11d5
commit 9000110d25
5 changed files with 28 additions and 12 deletions

View file

@ -5,3 +5,4 @@
# Backend API base URL (no trailing slash)
VITE_API_URL=http://localhost:8000
# Production: VITE_API_URL=https://api.urmiai.com

View file

@ -4,4 +4,9 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: true,
// Required when Caddy (or another proxy) forwards urmiai.com to the dev server
allowedHosts: ['urmiai.com', 'www.urmiai.com', 'localhost'],
},
})