Skip to content

v2.4.0: Migrate to Cloudflare Workers + feature additions#164

Merged
jacc merged 27 commits into
mainfrom
cloudflare-workers
Apr 6, 2026
Merged

v2.4.0: Migrate to Cloudflare Workers + feature additions#164
jacc merged 27 commits into
mainfrom
cloudflare-workers

Conversation

@jacc
Copy link
Copy Markdown
Collaborator

@jacc jacc commented Apr 6, 2026

The majority of this PR is a structural change, catching up to the origin, and adding some small features requested by users.

New features:

Deployment/runtime: migrated to Cloudflare Workers via OpenNext.

  • package.json
  • next.config.js
  • open-next.config.ts
  • wrangler.jsonc
  • scripts/opennext.mjs

Database access reworked for the Workers runtime.

  • src/db/index.ts
  • src/pages/api/saves/index.ts
  • src/db/migration.ts

The player patch API no longer uses raw SQL JSON_MERGE_PATCH. It now merges save updates in TypeScript before writing them back.

  • src/pages/api/saves/[playerId].ts

Auth/session handling cleaned up and centralized.

  • src/pages/api/oauth/index.ts
  • src/pages/api/oauth/callback.ts
  • src/pages/_app.tsx
  • src/pages/account.tsx
  • src/lib/cookies.ts
  • src/lib/client-env.ts
  • src/lib/fetch.ts

The app now reads the current user from /api/me (instead of the old /api entrypoint - this was for a CF Worker workaround)

  • src/pages/_app.tsx
  • src/pages/api/me.ts

Sentry integration removed. We weren't really actioning on any insights from them, and their instrumentation layer doesn't play nice with OpenNext.

  • src/instrumentation.ts
  • src/pages/_error.tsx
  • next.config.js

Minor UI/component changes for type cleanup, fetch helper usage, and React 19 compatibility:

  • src/contexts/players-context.tsx
  • src/pages/bundles.tsx

FracturedShader and others added 12 commits November 12, 2025 20:18
Added collapsed-by-default "Needed Ingredients" sections to cooking and
crafting pages with support for filtering by recipe state and season.

**Motivation and goals:**
Crafting every item requires a tremendous number of ingredients, some of
which can only be obtained in certain seasons. Having a full list to
reference makes it easy to plan ahead. Being able to filter by season
makes near term planning much more tractable.

**Features:**
- Support for cooking and crafting recipes
- Expands recipe ingredients recursively to make planning easier
- Familiar card layouts with Wiki links
- Custom Wiki links for non-specific ingredients (e.g. "Any Fish")
- Filtering by known/unknown (crafted/cooked excluded to avoid clutter)
- Filtering by season
Sorting of ingredients is done alphabetically by name and text search
leverages the same patterns as text search in other areas.

Co-authored-by: Denys Grybov <denys.grybov@hellofresh.com>
Fish have much more particular requirements for obtaining than crops and
are not a shipping item in and of themselves (so season data was not
being pulled). This commit brings in the information and displays from
the Fishing page so that filtering fish by season works and information
about catching them is readily available.
Used tabs for "All Recipes" and "Ingredient Tracker" as well as a prompt
to show beta features to enable the "Ingredient Tracker"
The recent `FishSeet` modifications inadvertently hid the link to the
wiki page when hiding buttons to set caught/uncaught state. This has
been fixed.
The `BooleanCard` was the wrong thing to use in the `IngredientList`
just to get the `FishSheet`. This unifies the usage paths for the list,
but still opens the full panel for fish.
… Workers/OpenNext + remove Sentry observability
@jacc jacc requested review from IanMitchell and clxmente April 6, 2026 16:55
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stardew Error Error Apr 6, 2026 6:36pm

@jacc jacc changed the title Migrate to Cloudflare Workers v2.4.0: Migrate to Cloudflare Workers + small feature additions Apr 6, 2026
@jacc jacc marked this pull request as ready for review April 6, 2026 18:38
@communitycenter communitycenter deleted a comment from cursor Bot Apr 6, 2026
@jacc jacc changed the title v2.4.0: Migrate to Cloudflare Workers + small feature additions v2.4.0: Migrate to Cloudflare Workers + feature additions Apr 6, 2026
Copy link
Copy Markdown
Member

@clxmente clxmente left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@jacc jacc merged commit 0eaa636 into main Apr 6, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants