Commit ef8cf73
[dashboards] open-brain-dashboard-next: add Cloudflare Workers deploy support
Adds the @opennextjs/cloudflare adapter so the dashboard can deploy to
Cloudflare Workers alongside the open-brain-rest gateway, keeping the
whole second-brain stack on a single platform. The older
@cloudflare/next-on-pages adapter caps at Next 15.5.x and doesn't
support this dashboard's Next 16, so OpenNext is the only path that
works without a major-version downgrade.
Builds on the next 16.2.4 patch bump merged from
contrib/tswicegood/dashboard-next-bump (which clears OpenNext's
next>=16.2.3 peer dep on its own).
Changes:
- @opennextjs/cloudflare and wrangler as dev deps.
- open-next.config.ts and wrangler.jsonc — the two config files
OpenNext needs at the project root. Worker name defaults to
ob-dashboard; deployers can rename in wrangler.jsonc.
- README: new "Deploy to Cloudflare Workers" subsection alongside
the existing Vercel one, including the build-time vs. runtime
distinction for NEXT_PUBLIC_API_URL vs. SESSION_SECRET (catching
that was the difference between a working deploy and a half-
configured one).
- .gitignore: exclude .open-next/ and .wrangler/ build artifacts.
Vercel deploy path is unchanged; this is purely additive.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e4f74d1 commit ef8cf73
6 files changed
Lines changed: 10131 additions & 4436 deletions
File tree
- dashboards/open-brain-dashboard-next
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
96 | 120 | | |
97 | 121 | | |
98 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments