feat(docker-compose.yml): add VITE_PROXY_TARGET environment variable to frontend service

feat(frontend/dev.Dockerfile): change npm start command to npm run dev:docker
feat(frontend/package.json): add dev:docker script to run vite with host 0.0.0.0
feat(frontend/vite.config.ts): use environment variable to determine the target for proxying requests
This commit is contained in:
Gabriel Almeida 2023-05-15 19:08:49 -03:00
commit b0ded58d1e
4 changed files with 31 additions and 30 deletions

View file

@ -35,6 +35,7 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"dev:docker": "vite --host 0.0.0.0",
"start": "vite",
"build": "vite build",
"serve": "vite preview"
@ -76,4 +77,4 @@
"typescript": "^5.0.2",
"vite": "^4.3.5"
}
}
}