Skip to content

fix: export frontend maps during Docker build (#19) - #378

Open
slsgzs-cloud wants to merge 1 commit into
Bitcoindefi:mainfrom
slsgzs-cloud:fix/docker-map-export
Open

slsgzs-cloud wants to merge 1 commit into
Bitcoindefi:mainfrom
slsgzs-cloud:fix/docker-map-export

Conversation

@slsgzs-cloud

Copy link
Copy Markdown

/attempt #743

Fixes #19

What

The Docker build was missing the map export step. The frontend/public/maps_optimized/ directory is generated by pnpm export-frontend-maps in the server directory, but the Dockerfile only copied and built the frontend. This resulted in 404 errors for all map files in production.

Changes

  1. Dockerfile (build stage): Added server dependency installation and pnpm export-frontend-maps execution before the frontend build, so the optimized maps are available in frontend/public/ when Next.js builds.

Why

Issue #19 reports that Docker deployments show a blank game world with 404 errors for /maps_optimized/*.json. The root cause is that frontend/.gitignore excludes /public/maps_optimized, and the export script was never called during Docker build.

Closes #19

@gitar-bot

gitar-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@slsgzs-cloud

Copy link
Copy Markdown
Author

Hi maintainers! This PR is mergeable and clean. It fixes a bounty issue worth $50. Would appreciate a review.

@slsgzs-cloud

Copy link
Copy Markdown
Author

Hi @Rodrigoue9 @leocagli — PR #378 fixes Issue #19 (50 USD bounty). It is mergeable and clean. Could you review when you have a moment? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

El build de Docker produce un frontend sin mapas: el mundo no se dibuja

1 participant