Skip to content

fix: move wrangler to dependencies#2123

Open
embire2 wants to merge 1 commit intostackblitz-labs:mainfrom
embire2:fix/docker-wrangler-dep-2080
Open

fix: move wrangler to dependencies#2123
embire2 wants to merge 1 commit intostackblitz-labs:mainfrom
embire2:fix/docker-wrangler-dep-2080

Conversation

@embire2
Copy link

@embire2 embire2 commented Feb 9, 2026

Fixes #2080

Problem

The production Docker image prunes devDependencies (pnpm prune --prod), but the runtime startup scripts call wrangler pages dev. When wrangler is only in devDependencies it
gets removed and the container fails to start.

Solution

Move wrangler to dependencies so it remains available after production pruning.

Testing

  • pnpm test
  • Simulated Docker prune: pnpm prune --prod --ignore-scripts and verified node_modules/.bin/wrangler --version works

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.

Docker: wrangler should be a Dep

2 participants