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
@@ -245,9 +245,28 @@ Below are some incredible people that the website wouldn't be without today.
245
245
246
246
---
247
247
248
-
## Local Database Setup
248
+
## Local Development Setup
249
249
250
-
1.Copy `apps/stardew.app/.env.local.example` to `apps/stardew.app/.env.local` and update the MySQL credentials.
251
-
2.Run `bun install` to install project dependencies.
250
+
1.Run `bun install` to install project dependencies.
251
+
2.Copy `.env.local.example` to `.env.local` and update the MySQL credentials.
252
252
3. Ensure MySQL is running locally.
253
-
4. Run `bun run prepLocalEnv` to create the database and sync the schema for local testing.
253
+
4. Run `bun run prepLocalEnv` to create the database and sync the schema.
254
+
5. Run `bun run dev` to start the Next.js dev server at http://localhost:3000.
255
+
256
+
### Testing against Cloudflare Workers locally
257
+
258
+
`bun run dev` runs a standard Next.js dev server — fast for iteration, but it does not emulate the Cloudflare runtime. To test with the actual Workers runtime locally (Hyperdrive bindings, etc.), use:
259
+
260
+
```
261
+
bun run preview
262
+
```
263
+
264
+
This builds the OpenNext Cloudflare bundle and runs it via Wrangler's local dev environment.
265
+
266
+
### Deploying
267
+
268
+
```
269
+
bun run deploy
270
+
```
271
+
272
+
This builds the OpenNext bundle and deploys it to Cloudflare Workers via Wrangler.
0 commit comments