Fix Vite dev server binding and port mapping
Some checks are pending
tests / ci (push) Waiting to run
Some checks are pending
tests / ci (push) Waiting to run
This commit is contained in:
parent
6d06d7ff62
commit
faf8051f6c
3 changed files with 12 additions and 2 deletions
|
|
@ -91,6 +91,6 @@ EOF
|
|||
|
||||
RUN chmod +x /start.sh
|
||||
|
||||
EXPOSE 8000 5173
|
||||
EXPOSE 8000 5174
|
||||
|
||||
CMD ["/start.sh"]
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ services:
|
|||
restart: unless-stopped
|
||||
ports:
|
||||
- "8001:8000"
|
||||
- "5174:5173"
|
||||
- "5174:5174"
|
||||
volumes:
|
||||
- ../..:/app
|
||||
environment:
|
||||
|
|
|
|||
|
|
@ -23,6 +23,16 @@ export default defineConfig({
|
|||
],
|
||||
server: {
|
||||
cors: true,
|
||||
// Bind all interfaces so the port mapping reaches it; the container's
|
||||
// own loopback is not addressable from the host browser. Port matches
|
||||
// the compose mapping so the URL written to public/hot is reachable.
|
||||
host: '0.0.0.0',
|
||||
port: 5174,
|
||||
strictPort: true,
|
||||
hmr: {
|
||||
host: 'localhost',
|
||||
clientPort: 5174,
|
||||
},
|
||||
watch: {
|
||||
ignored: [
|
||||
'**/.agents/**',
|
||||
|
|
|
|||
Loading…
Reference in a new issue