Closed neatonk closed 8 months ago
Create mesa GitHub repo
See the repo attached to this issue.
Create mesa Supabase project
Init repo with Nexjs, Supabase, and Prisma.
See https://supabase.com/docs/guides/getting-started/quickstarts/nextjs
Init repo with bun:
bunx create-next-app@latest --use-bun mesa && cd mesa
Connect to remote GitHub repo:
git remote add origin git@github.com:AbstractGoods/mesa.git
git branch -M main
git push -u origin main
Not using the Supabase example because it didn't work out of the box and included some cruft I would otherwise have to remove.
Following this guide instead: https://supabase.com/docs/guides/getting-started/tutorials/with-nextjs
Tried to install and use the supabase
CLI:
bun i supabase --save-dev
But there is no bin in the release so it would not run. Skipping this for now.
See #2
Added typegen
script to generate Typescript types from the remote db schema. Ideally, we would be able to check in the database schema and generate types from that.
https://supabase.com/docs/reference/cli/supabase-gen-types-typescript
Build errors:
DynamicServerError: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
--
14:37:49.001 | at staticGenerationBailout (/vercel/path0/.next/server/chunks/650.js:1:1634)
14:37:49.001 | at Object.cookies (/vercel/path0/.next/server/chunks/790.js:1:255276)
14:37:49.001 | at g.getCookie (/vercel/path0/.next/server/chunks/790.js:1:4965)
14:37:49.001 | at g.getItem (/vercel/path0/.next/server/chunks/790.js:1:12995)
14:37:49.001 | at getItemAsync (/vercel/path0/.next/server/chunks/790.js:1:64215)
14:37:49.002 | at SupabaseAuthClient._recoverAndRefresh (/vercel/path0/.next/server/chunks/790.js:1:45709)
14:37:49.002 | at SupabaseAuthClient._initialize (/vercel/path0/.next/server/chunks/790.js:1:25561)
14:37:49.002 | at /vercel/path0/.next/server/chunks/790.js:1:24835
14:37:49.002 | at /vercel/path0/.next/server/chunks/790.js:1:35327
14:37:49.002 | at SupabaseAuthClient.lockNoOp [as lock] (/vercel/path0/.next/server/chunks/790.js:1:22253) {
14:37:49.002 | digest: 'DYNAMIC_SERVER_USAGE'
Done
Steps to complete: