Skip to content

Conversation

@franklin-tina
Copy link
Contributor

Add comprehensive support for Cloudflare Workflows and Containers to Nitro:

Features Added:

  • Type definitions for Workflow and Container configuration
  • Wrangler config generation for workflows and containers
  • Runtime hooks for workflow lifecycle events
  • Comprehensive examples with working implementations
  • Full documentation in cloudflare.md

Type System:

  • Added WorkflowConfig interface for workflow configuration
  • Added ContainerConfig interface for container configuration
  • Added runtime hooks: cloudflare:workflow:init and cloudflare:workflow:run

Wrangler Integration:

  • Automatic generation of workflows config in wrangler.json
  • Automatic generation of containers config in wrangler.json
  • Support for all workflow and container options

Examples:

  • examples/cloudflare-workflows/ - Complete workflow example with API routes
  • examples/cloudflare-containers/ - Container integration with Durable Objects

Documentation:

  • Added Workflows section with configuration and usage guide
  • Added Containers section with setup and best practices
  • Updated existing documentation with new features

All changes follow Nitro conventions and maintain backward compatibility.

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Add comprehensive support for Cloudflare Workflows and Containers to Nitro:

**Features Added:**
- Type definitions for Workflow and Container configuration
- Wrangler config generation for workflows and containers
- Runtime hooks for workflow lifecycle events
- Comprehensive examples with working implementations
- Full documentation in cloudflare.md

**Type System:**
- Added `WorkflowConfig` interface for workflow configuration
- Added `ContainerConfig` interface for container configuration
- Added runtime hooks: `cloudflare:workflow:init` and `cloudflare:workflow:run`

**Wrangler Integration:**
- Automatic generation of workflows config in wrangler.json
- Automatic generation of containers config in wrangler.json
- Support for all workflow and container options

**Examples:**
- `examples/cloudflare-workflows/` - Complete workflow example with API routes
- `examples/cloudflare-containers/` - Container integration with Durable Objects

**Documentation:**
- Added Workflows section with configuration and usage guide
- Added Containers section with setup and best practices
- Updated existing documentation with new features

All changes follow Nitro conventions and maintain backward compatibility.
@vercel
Copy link

vercel bot commented Dec 26, 2025

@claude is attempting to deploy a commit to the Nitro Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link

coderabbitai bot commented Dec 26, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

@franklin-tina franklin-tina deleted the claude/nitro-cloudflare-durable-objects-SajHi branch December 26, 2025 20:40
@franklin-tina
Copy link
Contributor Author

Sorry about this.
I was experimenting with Claude about having native support for CF workflows etc.
Closed because this is 100% AI, and I havent tested or reviewed and I mistakenly opened a PR 🙈

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