Skip to content

AD1: the dashboard on Workers and Supabase - #2

Merged
pullely merged 1 commit into
mainfrom
orun/AD-2-the-dashboard-on-workers-and-supabase
Oct 28, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/AD-2-the-dashboard-on-workers-and-supabase

Conversation

@pullely

@pullely pullely commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

The template in apps/web on Next.js 16.3.8, built by @opennextjs/cloudflare into one Worker with Static Assets. Vercel Postgres becomes a Supabase project's Postgres reached through the HYPERDRIVE binding — a postgres client per request (lib/sql.ts) under upstream's Drizzle queries (lib/db.ts), the schema in lib/schema.ts with .enableRLS() — rendered into wrangler.jsonc from the wiring document the infra/terraform/cloudflare-hyperdrive root publishes over the infra/terraform/supabase project. The products table, row-level security, the template's ten products (its /api/seed route, removed) and the session key (64 hex characters each database generates into app_private.secrets) are packages/db migrations applied by infra/db-migrate before the Worker deploys, each with its drizzle-kit twin. Auth.js resolves its config per request: the key from lib/auth-secret.ts (AUTH_SECRET wins), GitHub only once AUTH_GITHUB_ID and AUTH_GITHUB_SECRET — optional Orun secrets, inlined at build — are both set; until then the dashboard serves signed-out and /login says how to connect GitHub. middleware.ts is proxy.ts, on the Node.js runtime so it can read the key; Vercel Analytics is removed; images are unoptimised. tests/web (the client, the queries, the key, Auth.js's real handlers reading sessions under it, providers, the login page, the health check, the wrangler config) and tests/db (the manifest, the twins, the seed and the key, row-level security, on PGlite). typecheck, lint, test and build are green; the Worker is 2.0 MiB gzipped.

🤖 Generated with Claude Code

The template in apps/web on Next.js 16.3.8, built by @opennextjs/cloudflare into one Worker with Static Assets. Vercel Postgres becomes a Supabase project's Postgres reached through the HYPERDRIVE binding — a postgres client per request (lib/sql.ts) under upstream's Drizzle queries (lib/db.ts), the schema in lib/schema.ts with .enableRLS() — rendered into wrangler.jsonc from the wiring document the infra/terraform/cloudflare-hyperdrive root publishes over the infra/terraform/supabase project. The products table, row-level security, the template's ten products (its /api/seed route, removed) and the session key (64 hex characters each database generates into app_private.secrets) are packages/db migrations applied by infra/db-migrate before the Worker deploys, each with its drizzle-kit twin. Auth.js resolves its config per request: the key from lib/auth-secret.ts (AUTH_SECRET wins), GitHub only once AUTH_GITHUB_ID and AUTH_GITHUB_SECRET — optional Orun secrets, inlined at build — are both set; until then the dashboard serves signed-out and /login says how to connect GitHub. middleware.ts is proxy.ts, on the Node.js runtime so it can read the key; Vercel Analytics is removed; images are unoptimised. tests/web (the client, the queries, the key, Auth.js's real handlers reading sessions under it, providers, the login page, the health check, the wrangler config) and tests/db (the manifest, the twins, the seed and the key, row-level security, on PGlite). typecheck, lint, test and build are green; the Worker is 2.0 MiB gzipped.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: AD-2
@pullely
pullely merged commit f758f46 into main Oct 28, 2026
2 checks passed
@pullely
pullely deleted the orun/AD-2-the-dashboard-on-workers-and-supabase branch October 28, 2026 07:15
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.

2 participants