You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -135,9 +133,21 @@ As shown above, the name of the binding that you configure for the KV namespace
135
133
136
134
You can continue to run `next dev` when developing locally.
137
135
138
-
In step 3, we also added the `npm run preview:worker`, which allows you to quickly preview your app running locally in the Workers runtime, rather than in Node.js. This allows you to test changes in the same runtime that your app runs in, when deployed to Cloudflare.
136
+
### 6. Preview locally your application and create an OpenNext config file
137
+
138
+
In step 3, we also added the `npm run preview:worker`, which allows you to quickly preview your app running locally in the Workers runtime, rather than in Node.js.
139
+
This allows you to test changes in the same runtime that your app runs in, when deployed to Cloudflare.
140
+
141
+
To preview your application in such way run:
142
+
143
+
```sh
144
+
npm run preview:worker
145
+
```
146
+
147
+
This command will build your OpenNext application, also creating, if not already present, an `open-next.configs.ts` file for you.
148
+
This if necessary if you want to deploy your application with a GibHub/GitLab integration as presented in the next step.
0 commit comments