Skip to content

Configure Miniflare for local Cloudflare Workers development #29

Closed
@nullcoder

Description

@nullcoder

Description

Set up Miniflare for better local development experience with Workers features.

Tasks

  • Research if Miniflare is needed with @opennextjs/cloudflare
  • Install and configure if beneficial
  • Update development scripts if needed
  • Document local development setup

Acceptance Criteria

  • Local development properly simulates Cloudflare Workers environment
  • R2 bindings work correctly in local development
  • Development workflow is documented
  • Scripts in package.json are updated if needed

Notes

  • We already have \

ghostpaste@0.1.0 preview
npm run cf:build && wrangler dev

ghostpaste@0.1.0 cf:build
npx @opennextjs/cloudflare build

┌─────────────────────────────┐
│ OpenNext — Cloudflare build │
└─────────────────────────────┘

App directory: /Users/nullcoder/Documents/GitHub/ghostpaste
Next.js version : 15.3.3
@opennextjs/cloudflare version: 1.1.0
@opennextjs/aws version: 3.6.4

┌─────────────────────────────────┐
│ OpenNext — Building Next.js app │
└─────────────────────────────────┘

ghostpaste@0.1.0 build
next build

▲ Next.js 15.3.3

Creating an optimized production build ...
✓ Compiled successfully in 4.0s
Linting and checking validity of types ... using wrangler dev

  • Need to evaluate if Miniflare provides additional benefits
  • Consider compatibility with @opennextjs/cloudflare

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloudflareCloudflare-specificpriority: lowNice to havereadyReady 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