Commit Graph

6 Commits

Author SHA1 Message Date
f3d1365588 fix: Separate internal and external server URLs for SSL compatibility
All checks were successful
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Successful in 11s
build-and-deploy / deploy (push) Successful in 10s
- Add PUBLIC_SERVER_URL environment variable for client-side connections
- Update /api/config endpoints to return public HTTPS URLs for frontend
- Keep internal HTTP URLs for server-to-server communication
- Resolves SSL certificate verification issues in admin service
- Maintains secure WSS/HTTPS connections for clients
2025-07-05 16:43:29 -06:00
70cb8b5be1 fix: Display correct public URLs in production logs
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 12s
build-and-deploy / deploy (push) Successful in 9s
- Admin shows https://snatchgGameAdmin.interno.com in production
- Client shows https://snatchGame.interno.com in production
- SSE endpoint shows correct public URL for browser connections
- Maintains localhost URLs for development environment
2025-07-05 16:29:50 -06:00
4780197577 fix: Use NODE_ENV to properly determine file serving strategy
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 12s
build-and-deploy / deploy (push) Successful in 9s
- Production (NODE_ENV=production): serves dist/ directory first
- Development: serves current directory only, ignores dist/
- Prevents conflicts when dist/ exists in development
- Clear error message if production build not found
2025-07-05 16:03:59 -06:00
f33cc71bb0 fix: Prioritize dist directory for production builds and correct MIME types
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / deploy (push) Successful in 9s
build-and-deploy / build (push) Successful in 11s
- Serve dist/index.html first for production builds
- Reorder static middleware to prioritize dist over dev files
- Add proper fallback to dev files if dist doesn't exist
- Should resolve JavaScript module MIME type errors
2025-07-05 15:59:37 -06:00
378febd8f3 fix: Correct environment variables and MIME types for production
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 12s
build-and-deploy / deploy (push) Successful in 9s
- 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
2025-07-05 15:53:19 -06:00
f739c6b3c7 first commit 2025-07-03 00:06:32 -06:00