cloudflare / cloudflare-docs

Cloudflare’s documentation
https://developers.cloudflare.com
Creative Commons Attribution 4.0 International
3.09k stars 4.77k forks source link

Errors in Workers NextJS framework guide #17291

Open dan-massey opened 1 month ago

dan-massey commented 1 month ago

Existing documentation URL(s)

https://developers.cloudflare.com/workers/frameworks/framework-guides/nextjs/

What changes are you suggesting?

In step 2, the final suggested line is: experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }

when it should in fact be assets = { directory = ".worker-next/assets", binding = "ASSETS" }

In step 3, the instructions suggest adding to package.json :

"deploy:worker": "npm run build:worker && wrangler deploy"

But this is later referred to incorrectly twice:

First in the last bullet immediately following the package.json instructions:

npm run deploy: Builds your app, and then deploys it to Cloudflare

Then again in step 6:

deploy via the command line: Terminal window npm run deploy

Additional information

No response