> ## Documentation Index
> Fetch the complete documentation index at: https://exegia.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployment

> Pushing migrations and edge functions to production

## Link and deploy

```bash theme={null}
# Link to remote project
supabase link --project-ref <your-ref>

# Push migrations
supabase db push

# Deploy functions
supabase functions deploy convert-corpus
```

## Environment variables

Production deployments need the same variables as local development, pointed at the remote project:

| Variable                    | Purpose                                     |
| --------------------------- | ------------------------------------------- |
| `SUPABASE_URL`              | Supabase project URL                        |
| `SUPABASE_ANON_KEY`         | Anon/publishable key for client-side access |
| `SUPABASE_SERVICE_ROLE_KEY` | Service role key (server/functions only)    |

<Warning>
  Never hardcode secrets in source files or commit service role keys to version control.
</Warning>
