fix: Correct environment variables and MIME types for production
- Change VITE_SERVER_URL to SERVER_URL in docker-compose - Add dist directory serving for built assets - Configure Express to serve JS modules with correct MIME type - Fix undefined Game Server in containers
This commit is contained in:
@@ -29,7 +29,7 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- VITE_SERVER_URL=http://snatchgame-server:2567
|
||||
- SERVER_URL=http://snatchgame-server:2567
|
||||
depends_on:
|
||||
- snatchgame-server
|
||||
networks:
|
||||
@@ -51,7 +51,7 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3001
|
||||
- VITE_SERVER_URL=http://snatchgame-server:2567
|
||||
- SERVER_URL=http://snatchgame-server:2567
|
||||
depends_on:
|
||||
- snatchgame-server
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user