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 +125,21 @@ As shown above, the name of the binding that you configure for the KV namespace
135
125
136
126
You can continue to run `next dev` when developing locally.
137
127
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.
128
+
### 6. Preview locally your application and create an OpenNext config file
129
+
130
+
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.
131
+
This allows you to test changes in the same runtime that your app runs in, when deployed to Cloudflare.
132
+
133
+
To preview your application in such way run:
134
+
135
+
```sh
136
+
npm run preview:worker
137
+
```
138
+
139
+
This command will build your OpenNext application, also creating, if not already present, an `open-next.configs.ts` file for you.
140
+
This if necessary if you want to deploy your application with a GibHub/GitLab integration as presented in the next step.
0 commit comments