File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/content/docs/workers/frameworks/framework-guides Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ You can deploy your Next.js app to Cloudflare Workers using the OpenNext adaptor
3939<Steps >
4040
41411 . ** Create a new project with the create-cloudflare CLI (C3).**
42+
4243 <PackageManagers
4344 type = " create"
4445 pkg = " cloudflare@latest my-next-app"
@@ -121,8 +122,8 @@ You can convert an existing Next.js application to run on Cloudflare
121122 You can add the following scripts to your ` package.json ` :
122123
123124 ``` json
124- "preview" : " opennextjs-cloudflare && wrangler dev " ,
125- "deploy" : " opennextjs-cloudflare && wrangler deploy" ,
125+ "preview" : " opennextjs-cloudflare build && opennextjs-cloudflare preview " ,
126+ "deploy" : " opennextjs-cloudflare build && opennextjs-cloudflare deploy" ,
126127 "cf-typegen" : " wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts"
127128 ```
128129
You can’t perform that action at this time.
0 commit comments