mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## Problem The server-side rendering overview warns that the `@supabase/ssr` API may have breaking changes, but links only the npm package. Readers who upgrade can't find where each version's changes are published. Related to [FDBKIN-7384](https://linear.app/supabase/issue/FDBKIN-7384/provide-clear-release-notes-for-supabasessr-library-updates) Closes [DOCS-1876](https://linear.app/supabase/issue/DOCS-1876/link-the-supabasessr-release-notes-from-the-server-side-rendering) ## Solution The `@supabase/ssr` section of the Server-Side Rendering overview now points to the package's GitHub repository, its GitHub releases, and its changelog. It tells readers to read the entries for every version from the one they use up to the one they install. The text says neither source labels breaking changes separately: no changelog entry or release has a breaking-changes heading. Both sources are linked because neither alone covers every version. ## How to verify 1. Open https://docs-git-tedd-docs-1876-supabase.vercel.app/docs/guides/auth/server-side#supabasessr. 2. The `@supabase/ssr` section has a paragraph after the breaking-changes warning, with links to the `supabase/ssr` repository, its GitHub releases, and its changelog. 3. Each link opens the matching page on GitHub. 4. The paragraph tells the reader to read the release notes before upgrading. ## Checks Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'` (0 errors), and `pnpm exec oxfmt --check` on the changed page. Checked the facts against the `supabase/ssr` repository (`package.json`, `CHANGELOG.md`, `release-please-config.json`), its GitHub releases, and the npm registry entry for `@supabase/ssr`. The three links return HTTP 200. Didn't run the docs page build, because `build:federated-content` needs GitHub credentials that the build environment doesn't have. ## Follow-ups - `apps/docs/content/guides/auth/server-side.mdx:1-4`: the frontmatter has no `description`, and the page has no `## Related resources` section, which the explainer template in `apps/docs/style-guide/03-page-structure.md` expects. ## Checklist - [x] I have read the [Contributing Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] I have checked that the change works in the preview deployment ## Feedback for Tedd To ask Tedd for a change to this PR, reply in Tedd's session on [DOCS-1876](https://linear.app/supabase/issue/DOCS-1876/link-the-supabasessr-release-notes-from-the-server-side-rendering). Tedd doesn't read comments on this PR. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
44 lines
2.2 KiB
Plaintext
44 lines
2.2 KiB
Plaintext
---
|
|
title: 'Server-Side Rendering'
|
|
subtitle: 'How SSR works with Supabase Auth.'
|
|
---
|
|
|
|
SSR frameworks move rendering and data fetches to the server, to reduce client bundle size and execution time.
|
|
|
|
Supabase Auth is fully compatible with SSR. You need to make a few changes to the configuration of your [Supabase client](/docs/reference/javascript/introduction), to store the user session in cookies instead of local storage. After setting up your Supabase client, follow the instructions for any flow in the How-To guides.
|
|
|
|
<Admonition type="note">
|
|
|
|
Make sure to use the PKCE flow instructions where those differ from the implicit flow instructions. If no difference is mentioned, don't worry about this.
|
|
|
|
</Admonition>
|
|
|
|
## `@supabase/ssr`
|
|
|
|
We have developed an [`@supabase/ssr`](https://www.npmjs.com/package/@supabase/ssr) package for setting up the Supabase client. This package is currently in beta. Adoption is recommended but be aware that the API is still unstable and may have breaking changes in the future.
|
|
|
|
The package's source code is in the [`supabase/ssr`](https://github.com/supabase/ssr) GitHub repository. Each version's changes are listed in the repository's [GitHub releases](https://github.com/supabase/ssr/releases) and [changelog](https://github.com/supabase/ssr/blob/main/CHANGELOG.md). Neither labels breaking changes separately. Before you upgrade, read the entries for every version from the one you use up to the one you install.
|
|
|
|
## Framework quickstarts
|
|
|
|
<div className="grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-6 mb-6 not-prose">
|
|
<Link
|
|
href="/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=nextjs"
|
|
passHref
|
|
>
|
|
<GlassPanel title="Next.js" icon="/docs/img/icons/nextjs-icon">
|
|
Automatically configure Supabase in Next.js to use cookies, making your user and their session
|
|
available on the client and server.
|
|
</GlassPanel>
|
|
</Link>
|
|
<Link
|
|
href="/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=sveltekit"
|
|
passHref
|
|
>
|
|
<GlassPanel title="SvelteKit" icon="/docs/img/icons/svelte-icon">
|
|
Automatically configure Supabase in SvelteKit to use cookies, making your user and their
|
|
session available on the client and server.
|
|
</GlassPanel>
|
|
</Link>
|
|
</div>
|