-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:workersRelated to Workers productRelated to Workers product
Description
Existing documentation URL(s)
https://developers.cloudflare.com/workers/frameworks/framework-guides/nextjs/
What changes are you suggesting?
The Existing Next.js apps item is out of date and does not work.
Update the content to align with the OpenNext documentation.
wrangler.toml
- main = ".worker-next/index.mjs"
+ main = ".open-next/worker.js"
name = "my-app"
compatibility_date = "2024-09-23"
compatibility_flags = ["nodejs_compat"]
- assets = { directory = ".worker-next/assets", binding = "ASSETS" }
+ assets = { directory = ".open-next/assets", binding = "ASSETS" }package.json
- "build:worker": "cloudflare",
+ "build:worker": "opennextjs-cloudflare",
"dev:worker": "wrangler dev --port 8771",
"preview:worker": "npm run build:worker && npm run dev:worker",
"deploy:worker": "npm run build:worker && wrangler deploy"Additional information
No response
Metadata
Metadata
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:workersRelated to Workers productRelated to Workers product