config changes
This commit is contained in:
parent
38eb2a11d5
commit
9000110d25
5 changed files with 28 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue