feat: add full project - backend, frontend, docker, specs and configs
This commit is contained in:
parent
b77c7d5a01
commit
e6cb06255b
24489 changed files with 61341 additions and 36 deletions
23
frontend/vite.config.ts
Normal file
23
frontend/vite.config.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
// In Docker, the backend service is reachable by its service name.
|
||||
// VITE_API_HOST is set in docker-compose.yml; falls back to localhost for local dev.
|
||||
const apiHost = process.env.VITE_API_HOST ?? 'localhost'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 5173,
|
||||
watch: {
|
||||
usePolling: true,
|
||||
ignored: ['**/public/imoveis/**'],
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: `http://${apiHost}:5000`,
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue