Skip to content

Commit 0eaa636

Browse files
authored
v2.4.0: Migrate to Cloudflare Workers + feature additions
2 parents 9962372 + 78661a6 commit 0eaa636

233 files changed

Lines changed: 6961 additions & 17900 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.cjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
extends: ["plugin:@typescript-eslint/recommended", "next/core-web-vitals"],
3+
parser: "@typescript-eslint/parser",
4+
plugins: ["@typescript-eslint"],
5+
root: true,
6+
rules: {
7+
"@typescript-eslint/consistent-type-imports": [
8+
"error",
9+
{
10+
prefer: "type-imports",
11+
fixStyle: "inline-type-imports",
12+
},
13+
],
14+
"@typescript-eslint/no-explicit-any": 0,
15+
"@typescript-eslint/no-require-imports": 0,
16+
"@typescript-eslint/no-empty-interface": 0,
17+
},
18+
};

.github/workflows/format.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ on: [push, pull_request]
55
jobs:
66
Format:
77
runs-on: ubuntu-latest
8-
env:
9-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
10-
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
118

129
steps:
1310
- uses: actions/checkout@v4
1411

1512
- uses: oven-sh/setup-bun@v1
1613

1714
- name: Install modules
18-
run: bun install
15+
run: bun install --frozen-lockfile
1916

2017
- name: Run Format
2118
run: bun run format

.github/workflows/lint.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ on: [push, pull_request]
55
jobs:
66
Lint:
77
runs-on: ubuntu-latest
8-
env:
9-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
10-
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
11-
128
steps:
139
- uses: actions/checkout@v4
1410

1511
- uses: oven-sh/setup-bun@v1
1612

1713
- name: Install modules
18-
run: bun install
14+
run: bun install --frozen-lockfile
1915

2016
- name: Run ESLint
2117
run: bun run lint

.github/workflows/test.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/typecheck.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ on: [push, pull_request]
55
jobs:
66
Typecheck:
77
runs-on: ubuntu-latest
8-
env:
9-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
10-
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
11-
128
steps:
139
- uses: actions/checkout@v4
1410

1511
- uses: oven-sh/setup-bun@v1
1612

1713
- name: Install modules
18-
run: bun install
14+
run: bun install --frozen-lockfile
1915

2016
- name: Run Typecheck
2117
run: bun run typecheck

.gitignore

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
node_modules
22
.next/
3+
.open-next/
4+
.wrangler/
35
out/
46
.DS_Store
57
*.pem
68
npm-debug.log*
9+
package-lock.json
710
.env
8-
.env.local
11+
.env.*
912
.vercel
1013
*.tsbuildinfo
1114
next-env.d.ts
1215
.turbo
1316
venv
1417
.venv
1518
__pycache__/
16-
.sentryclirc
17-
.env.sentry-build-plugin
19+
.env*.local
20+
.dev.vars*
21+
AGENTS.md
22+
cloudflare-env.d.ts
23+
.agents/
24+
.claude/
25+
dist/
26+
scripts/**/*.json

README.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ The website uses [Next.js](https://nextjs.org) for its frontend, self-hosted MyS
1616
<img align=center src="https://github.com/communitycenter/stardew.app/blob/main/.github/info.png?raw=true" alt="Stardew.app Logo" width="500" /></br>
1717
</p>
1818

19-
| Feature | | Notes |
20-
| ------------------------------- | --- | -------------------- |
19+
| Feature | | Notes |
20+
| ------------------------------- | --- | ----- |
2121
| 100% perfection tracking ||
22-
| All 1.6 content | ⚠️ | Missing animals page |
22+
| All 1.6 content | |
2323
| Achievement tracking ||
2424
| Fish tracker with location info ||
2525
| Shipping tracker with crop info ||
@@ -245,9 +245,28 @@ Below are some incredible people that the website wouldn't be without today.
245245

246246
---
247247

248-
## Local Database Setup
248+
## Local Development Setup
249249

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.
252252
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.

apps/stardew.app/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/stardew.app/next.config.js

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)