Skip to content

chore: migrate wrangler.toml to wrangler.jsonc#25

Open
chitcommit wants to merge 1 commit intomainfrom
chore/wrangler-toml-to-jsonc
Open

chore: migrate wrangler.toml to wrangler.jsonc#25
chitcommit wants to merge 1 commit intomainfrom
chore/wrangler-toml-to-jsonc

Conversation

@chitcommit
Copy link
Contributor

Summary

  • Convert wrangler.toml to wrangler.jsonc format
  • Preserves all configuration (vars, bindings, routes, environments)
  • Part of ecosystem-wide migration to JSONC for comment support

Test plan

  • Verify npx wrangler deploy --dry-run succeeds with new config
  • Confirm no config drift vs. production

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 16, 2026 07:17
@github-actions
Copy link

@coderabbitai review
@copilot review
Adversarial review request: evaluate security, policy bypass paths, and regression risk.

@coderabbitai
Copy link

coderabbitai bot commented Mar 16, 2026

Warning

Rate limit exceeded

@chitcommit has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 33 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9a25e21e-34c8-4485-9536-b2c382dd63c7

📥 Commits

Reviewing files that changed from the base of the PR and between f43107f and f65db26.

📒 Files selected for processing (6)
  • chitty-marketplace-skill/backend/wrangler.jsonc
  • chitty-marketplace-skill/backend/wrangler.toml
  • chitty-marketplace-skill/wrangler.jsonc
  • chitty-marketplace-skill/wrangler.toml
  • project-awareness/cloudflare-worker/wrangler.jsonc
  • project-awareness/cloudflare-worker/wrangler.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/wrangler-toml-to-jsonc
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates Cloudflare Workers Wrangler configuration from TOML to JSONC to enable comment support while keeping the same deployment settings (routes, bindings, env vars) for the affected workers.

Changes:

  • Replaced wrangler.toml with wrangler.jsonc for project-awareness/cloudflare-worker.
  • Replaced wrangler.toml with wrangler.jsonc for chitty-marketplace-skill and chitty-marketplace-skill/backend.
  • Preserved existing routes, vars, and bindings in the new JSONC configs.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
project-awareness/cloudflare-worker/wrangler.toml Removed TOML config in favor of JSONC.
project-awareness/cloudflare-worker/wrangler.jsonc Added JSONC worker configuration equivalent to prior TOML.
chitty-marketplace-skill/wrangler.toml Removed TOML config in favor of JSONC.
chitty-marketplace-skill/wrangler.jsonc Added JSONC worker configuration equivalent to prior TOML.
chitty-marketplace-skill/backend/wrangler.toml Removed TOML config in favor of JSONC.
chitty-marketplace-skill/backend/wrangler.jsonc Added JSONC worker configuration equivalent to prior TOML.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +4
// chittyops-project-awareness — Cloudflare Workers configuration
{
"name": "chittyops-project-awareness",
"main": "src/worker.js",
Comment on lines +3 to +8
"name": "chittyops-project-awareness",
"main": "src/worker.js",
"compatibility_date": "2024-08-29",
"compatibility_flags": [
"nodejs_compat"
],
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f65db26bac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,95 @@
// chittyops-project-awareness — Cloudflare Workers configuration

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep wrangler.toml until deploy script accepts JSONC

Switching this worker to wrangler.jsonc while deleting wrangler.toml breaks the existing deployment flow in project-awareness/deployment/deploy-cloudflare-optimized.sh: validate_prerequisites() exits if $WORKER_DIR/wrangler.toml is missing (lines 68–70), so deployments now fail before any setup runs. In the current repo state, this migration is incomplete unless that script is updated to accept wrangler.jsonc (or a compatibility wrangler.toml is retained).

Useful? React with 👍 / 👎.

@chitcommit chitcommit enabled auto-merge (squash) March 16, 2026 18:15
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.

2 participants