Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 861 Bytes

File metadata and controls

38 lines (25 loc) · 861 Bytes

Deployment

1. Supabase Production Setup

Provision Supabase project in production

  • Create a Supabase project at supabase.com.
  • Retrieve your production Supabase URL and API key from the project settings.

Configure environment variables for production

Update your .env file with the production Supabase credentials:

VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_KEY=your-production-anon-key

Migrate your database schema

Apply migrations to your production Supabase database using:

supabase link
supabase db push

2. Build and Deploy Static Assets

Build the application

Run the following command to create a production build:

yarn build

Serve the production build

You can use any static file server or hosting platform to deploy your build.