Skip to content

Comments

Add workers_dev: true to all templates#954

Open
irvinebroque wants to merge 2 commits intocloudflare:mainfrom
irvinebroque:add-workers-dev-true
Open

Add workers_dev: true to all templates#954
irvinebroque wants to merge 2 commits intocloudflare:mainfrom
irvinebroque:add-workers-dev-true

Conversation

@irvinebroque
Copy link
Contributor

Summary

  • Add workers_dev: true to all 26 template wrangler configurations for a clearer deployment path
  • Add CLI lint rule to enforce workers_dev: true for future templates

Changes

  • Updated wrangler.json / wrangler.jsonc in all 26 templates to explicitly set workers_dev: true
  • Added validation in cli/src/lint.ts for both lintWranglerJson and lintWranglerJsonC functions:
    • Added workers_dev to type definitions
    • Added auto-fix support (wrangler.workers_dev = true)
    • Added validation check with error message when workers_dev is not true

- Set workers_dev: true in all 26 template wrangler configs for clearer deployment path
- Add CLI lint rule to enforce workers_dev: true for future templates
# Conflicts:
#	astro-blog-starter-template/wrangler.json
#	chanfana-openapi-template/wrangler.jsonc
#	cli/src/lint.ts
#	containers-template/wrangler.jsonc
#	d1-starter-sessions-api-template/wrangler.jsonc
#	d1-template/wrangler.json
#	durable-chat-template/wrangler.json
#	hello-world-do-template/wrangler.json
#	llm-chat-app-template/wrangler.jsonc
#	multiplayer-globe-template/wrangler.json
#	mysql-hyperdrive-template/wrangler.jsonc
#	next-starter-template/wrangler.jsonc
#	nlweb-template/wrangler.jsonc
#	nodejs-http-server-template/wrangler.jsonc
#	openauth-template/wrangler.json
#	postgres-hyperdrive-template/wrangler.jsonc
#	r2-explorer-template/wrangler.json
#	react-postgres-fullstack-template/wrangler.jsonc
#	react-router-hono-fullstack-template/wrangler.jsonc
#	react-router-postgres-ssr-template/wrangler.jsonc
#	react-router-starter-template/wrangler.json
#	remix-starter-template/wrangler.json
#	text-to-image-template/wrangler.json
#	to-do-list-kv-template/wrangler.jsonc
#	vite-react-template/wrangler.json
@irvinebroque irvinebroque marked this pull request as ready for review February 19, 2026 05:45
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.

1 participant