Installation
Heads up: TanStack Start is in beta.
We're excited to support TanStack Start in Supabase Library! But since it's still in beta, things may change quickly — expect breaking changes and some rough edges. We'll do our best to keep up and make integration with Supabase as smooth as possible. If you run into issues, have a look at the TanStack docs.TanStack Quickstart guideUsage
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
After installing the block, you'll have the following environment variables in your .env.local file:
VITE_SUPABASE_URL=
VITE_SUPABASE_PUBLISHABLE_KEY=-
If you're using supabase.com, you can find these values in the Connect modal under App Frameworks or in your project's API settings.
-
If you're using a local instance of Supabase, you can find these values by running
supabase startorsupabase status(if you already have it running).