Skip to content

Errors in Workers NextJS framework guide #17291

@dan-massey

Description

@dan-massey

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions