Skip to content

Configure Cloudflare Workers environment #6

Closed
@nullcoder

Description

@nullcoder

Description

Set up Cloudflare Workers and configure Next.js for edge deployment.

Tasks

  • Install and configure wrangler
  • Install @cloudflare/next-on-pages
  • Configure project for Workers deployment
  • Set up Edge Runtime compatibility for all routes
  • Create wrangler.toml with R2 bucket bindings
  • Create .dev.vars file for local secrets

Acceptance Criteria

  • Wrangler CLI installed and configured
  • Project builds with @cloudflare/next-on-pages
  • wrangler.toml properly configured with R2 bindings
  • Local development works with wrangler

Technical Notes

  • Follow Cloudflare's official Next.js deployment guide
  • Ensure all routes use Edge Runtime
  • Test R2 bindings work locally

Related TODO.md lines: 9-11, 13, 17

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloudflareCloudflare-specificedge-runtimeEdge runtime compatibilitypriority: highShould be done soonreadyReady to be worked onsetupInitial project setup and configuration

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions