Files
supabase/apps/ui-library/content/docs/tanstack/client.mdx
Ivan Vasilov 156e8fd9b7 fix: Minor fixes for UI Library (#34535)
* Regenerate the registry.

* Fix the paths of the ai editor rules.

* Fix headings on clients and auth blocks.

* Fix realtime chat and avatar demos.

* Setup mdx-lint for the ui-library. Fix some obvious wordings.

* Fix the tooltips for the examples. Reorder the example pages.
2025-03-30 09:56:03 +02:00

32 lines
1.1 KiB
Plaintext

---
title: Supabase Client Libraries
description: Supabase client for TanStack Start
---
## Installation
<BlockItem name="supabase-client-tanstack" description="Supabase Client for TanStack Start" />
## Folder structure
<RegistryBlock itemName="supabase-client-tanstack" />
## Usage
This block installs Supabase clients for connecting your TanStack Start project to Supabase. They're designed for use in both server-side loaders and actions, as well as client-side components.
If you've already set up a Supabase client in your project, you can just continue using that existing setup.
### Getting started
First, add a `.env` file to your project with the following environment variables:
```env
VITE_SUPABASE_URL=
VITE_SUPABASE_ANON_KEY=
```
- If you're using supabase.com, you can find these values in the [Connect modal](https://supabase.com/dashboard/project/_?showConnect=true) under App Frameworks or in your project's [API settings](https://supabase.com/dashboard/project/_/settings/api).
- If you're using a local instance of Supabase, you can find these values by running `supabase start` or `supabase status` (if you already have it running).