Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: update with-supabase example to App Router #51335

Merged
merged 14 commits into from Jun 16, 2023

Conversation

dijonmusters
Copy link
Contributor

@dijonmusters dijonmusters commented Jun 15, 2023

What?

Update Next.js with Supabase example

Why?

Existing example for Next.js with Supabase is out of date

How?

  • Rename with-supabase-auth-db-realtime to with-supabase
  • Update example to use App Router
  • Use Supabase Auth Helpers for Next.js to configure auth cookies

@ijjk ijjk added area: documentation examples Issue/PR related to examples labels Jun 15, 2023
@vercel-spaces vercel-spaces bot requested a review from Nutlope June 15, 2023 07:10
@dijonmusters dijonmusters force-pushed the chore/update-supabase-example branch from cf3373f to 92c09cf Compare June 15, 2023 07:10
@dijonmusters dijonmusters force-pushed the chore/update-supabase-example branch from 92c09cf to e962e34 Compare June 15, 2023 07:12
Copy link
Member

@balazsorban44 balazsorban44 left a comment

Choose a reason for hiding this comment

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

Thanks, left some small feedback to adhere to https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md

In addition, could you also convert the example to TypeScript? Thanks!

examples/with-supabase/package.json Outdated Show resolved Hide resolved
examples/with-supabase/package.json Outdated Show resolved Hide resolved
examples/with-supabase/package.json Outdated Show resolved Hide resolved
examples/with-supabase/tailwind.config.js Outdated Show resolved Hide resolved
Copy link
Member

@leerob leerob left a comment

Choose a reason for hiding this comment

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

Could we use TypeScript in this example please?

@dijonmusters dijonmusters force-pushed the chore/update-supabase-example branch from 977ea58 to c4de31e Compare June 16, 2023 00:59
@dijonmusters
Copy link
Contributor Author

@balazsorban44 and @leerob thanks for the review 🙌

Example is now TS 👍

@dijonmusters dijonmusters force-pushed the chore/update-supabase-example branch from d18e3bf to 02766b6 Compare June 16, 2023 01:17
Copy link
Member

@leerob leerob left a comment

Choose a reason for hiding this comment

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

Is there a deploy example I can test this out?

@dijonmusters
Copy link
Contributor Author

Is there a deploy example I can test this out?

https://with-supabase.vercel.app

@ijjk
Copy link
Member

ijjk commented Jun 16, 2023

Allow CI Workflow Run

  • approve CI run for commit: 0c0389f

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@ijjk
Copy link
Member

ijjk commented Jun 16, 2023

Allow CI Workflow Run

  • approve CI run for commit: 0c0389f

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@leerob leerob changed the title Chore: update with-supabase example to App Router examples: update with-supabase example to App Router Jun 16, 2023
@ijjk ijjk merged commit 3cac097 into vercel:canary Jun 16, 2023
32 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants