Commit Graph

6 Commits

Author SHA1 Message Date
Jon Meyers fc4f062ba9 Chore: Update with-supabase example to Next.js 16 (#86105)
### What?

Upgrade with-supabase example to be compatible with Next.js 16

### Why?

1. Users get console warnings about middleware vs proxy
2. Enabling Cache Components config results in build errors for async
behaviour outside Suspense boundary
3. Turbopack flag is default and therefore, no longer necessary on `npm
run dev`

### How?

1. Renamed all instances of `middleware` to `proxy`
2. Wraped async behaviour in Suspense boundaries
3. Removed --turbopack flag from `npm run dev`

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2025-11-17 22:41:21 -08:00
Carlo Quick 04c7cef99b [docs] fix(with-supabase): Update README env variables (#84745)
Closes #84734

Fixes environmental variable names in `with-supabase` example README to
match the actual `.env.example` file.

Updates `NEXT_PUBLIC_SUPABASE_ANON_KEY` to
`NEXT_PUBLIC_SUPABASE_PUBLISHABLE_OR_ANON_KEY` in two locations.

---------

Co-authored-by: Joseph <joseph.chamochumbi@vercel.com>
2025-10-13 13:07:28 +02:00
Stojan Dimitrovski 8659d47c09 chore: Update with-supabase example to use getClaims() (#81383)
Updates the `with-supabase` example to use the new and much faster (when
project is configured with asymmetric JWT support)
`supabase.auth.getClaims()` function instead of `getUser()`.

---------

Co-authored-by: Benjamin Woodruff <benjamin.woodruff@vercel.com>
2025-07-15 15:31:46 -07:00
Ivan Vasilov 2b7a259169 chore: Update the with-supabase example to use the Supabase Auth block (#78913)
This PR updates the `with-supabase` template to better auth pages,
Tailwind v4 and newest `components.json` for full compatibility with
shadcn/ui.

The `(auth-pages)` folder has been removed. For auth, the template is
now using the [password based auth
block](https://supabase.com/ui/docs/nextjs/password-based-auth) from the
Supabase UI Library which makes it easier to update it and keep it
up-to-date.

---------

Co-authored-by: Lee Robinson <lee@leerob.com>
2025-05-28 12:19:55 -05:00
Damien Sedgwick a216207891 Removed duplicated cn function declaration from lib dir (#74065)
This pull request removes duplication of a utility function within the
`with-supabase` example as mentioned in the following issue #73942 - I
removed the duplicated code from the `utils` directory as when shadcn
installs a new component, that component will look for the helper
function in `lib/utils.ts` and forcing users to update every component
after installation or modify any config files for shadcn seems like a
worse DX.

- Fixes https://github.com/vercel/next.js/issues/73942

---------

Co-authored-by: samcx <sam@vercel.com>
2024-12-18 18:40:30 +00:00
Jonathan Summers-Muir 00f70f2052 examples: improve Supabase example (#69308)
Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Lee Robinson <me@leerob.io>
2024-08-27 22:09:10 -05:00