Commit Graph
15 Commits
Author SHA1 Message Date
Terry SuttonandCharis Lam bb0306061d Chore/update to next 15 (#30075)
* Update Next.js docs for v15

* More awaiting

* remove async for pages router

* fix for dashboard connection guide

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-10-24 12:56:20 -02:30
Kyle Malloy 6e4eaab51a astro middleware (#29729)
* astro middleware

* prettier
2024-10-16 15:48:28 +00:00
Kyle Malloy a2be5836ad Missing import in Astro example (#29460) 2024-09-30 07:14:22 +00:00
Dmytro Dobrovolskyi 9b91ed175e Fix typo in docs (#29097)
Fix typo in middleware.ts filenaming
2024-09-05 14:12:36 +00:00
Charis 3df871be4b fix: update code examples for ssr on social login guides (#27906) 2024-07-11 11:54:04 -04:00
Andrew Smith 8124dcae54 update sveltekit guides with the latest ssr setup (#27641)
* update sveltekit guides with the latest ssr setup

* update style formatting
2024-07-01 19:39:43 -04:00
Erik Petersen 862f6075fb docs: fix Next.js create client docs to match fix in ssr auth docs (#27659)
* docs: fix nextjs create client docs to match fix in ssr auth docs

* Fix bug by also making the auth route public
2024-07-01 21:35:49 +00:00
Stojan Dimitrovski ca48672711 docs: rewrite ssr examples to use getAll, setAll (#27242) 2024-06-24 18:58:17 +02:00
Charis 4c9c96a159 fix(sveltekit ssr docs): createBrowserClient use (#26872)
In the abbreviated SvelteKit SSR instructions, `createBrowserClient` is
used in hybrid code that runs on both the server and client, with
changes in the configuration depending on where it's run. That's just
confusing, because the name implies it should not run on the server.

Change it to match the full SvelteKit SSR tutorial, which selectively
runs `createBrowserClient` or `createServerClient` depending on the
current environment.
2024-05-31 11:43:29 -04:00
Charis 0d1f8b8627 fix: sveltekit examples pass headers through (#23448)
The `x-supabase-api-version` header was added to Supabase APIs, so it
needs to be passed through in SvelteKit examples.
2024-05-02 11:28:43 -04:00
Charis 0c8f9942cf feat(understandability): add new server-side auth docs for sveltekit (#22574)
End-to-end guide for setting up Server-Side Auth with SvelteKit, covering:

- Protected routes
- Signin, signup, signout
- Protected data
2024-04-22 18:26:27 +00:00
Thibault Dalban 0c457bb1e3 Fix sveltekit hooks.server.ts example (#22436)
The `supabase` variable doesn't exist in this context, but an instance is accessible through the `event.locals`.
2024-04-03 14:24:08 +00:00
Charis a1060c86de fix: better handling of getSession for sveltekit (#22381) 2024-04-03 07:18:46 -04:00
Jon Meyers 62720c4e35 Chore: Improve Next.js Auth guide (#21104)
* revert name of token route to auth/confirm/

* add images to middleware matcher
2024-02-08 14:55:30 +11:00
Charis e20038e2f2 refactor: move auth guides into content directory (#20777)
Begin the process of moving our MDX files into their own content directory.

Fixed a few minor bugs re: ToC and tabs not rerendering consistently on page navigation. (The ToC thing wasn't a problem before the refactor, the tabs thing is a problem on prod.)

Moved MDX files can't import their own components, so everything they require needs to be back in the component prop for mdx-remote's serializer. Cleaned this up a bit and lazy-loaded heavy/rare stuff. Also, the component prop doesn't take arbitrary objects (only actual components), so imported data has to be wrapped in a component.
2024-02-07 17:25:08 +00:00