Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Current Environment: STAGING
Quick Reference
| Environment | Project ID | Status |
|---|---|---|
| Production | zkgxozahyczcnzpwhbbf | ⚪ Inactive |
| Staging | rzfzikcargkoyhgqllap | 🟢 Active |
Environment Credentials
Production
Staging
Switching Environments
New Workflow (Using Supabase CLI)
The project now uses multi-environment configuration insupabase/config.toml with [remotes] blocks. This allows seamless switching between environments using the Supabase CLI.
Important: The .env file still needs to be updated for frontend application configuration. The supabase/config.toml is now managed via CLI commands.
Local Development
- Update
.envwith local Supabase URL and keys fromnpx supabase status - Or use staging/production URLs if testing against remote
To Switch to Staging
CLI Configuration:- Update
.envwith Staging credentials above - Wait for Lovable to auto-regenerate
src/integrations/supabase/client.ts - Wait for Lovable to auto-regenerate
src/integrations/supabase/types.ts - Update “Current Environment” at top of this file to STAGING
To Switch to Production
⚠️ WARNING: Production environment - use with extreme caution! CLI Configuration:- Update
.envwith Production credentials above - Wait for Lovable to auto-regenerate
src/integrations/supabase/client.ts - Wait for Lovable to auto-regenerate
src/integrations/supabase/types.ts - Update “Current Environment” at top of this file to PRODUCTION
Switching Between Environments
Checklist
When switching environments:- CLI: Link to correct project using
npx supabase link --project-ref <project-id> - CLI: Verify connection with
npx supabase status - Frontend: Update
.envwith correctVITE_SUPABASE_*variables - Frontend: Wait for Lovable to auto-regenerate client and types
- Documentation: Update “Current Environment” at top of this file
Environment Purposes
| Environment | Purpose | Data |
|---|---|---|
| Production | Live application | Real user data |
| Staging | Development & testing | Synthetic test data |
When to Use Each
- Staging: New feature development, migration testing, debugging
- Production: Verified deployments only, after staging validation
Files Updated During Switch
| File | Update Method | Notes |
|---|---|---|
.env | Manual | Update VITE_SUPABASE_* variables for frontend |
supabase/config.toml | Managed via CLI | Uses [remotes] blocks - no manual editing needed |
src/integrations/supabase/client.ts | Auto-generated by Lovable | Regenerates when .env changes |
src/integrations/supabase/types.ts | Auto-generated from schema | Regenerates when .env changes |
Configuration Details
Supabase CLI Configuration
Thesupabase/config.toml file now uses multi-environment configuration:
- Default config: Used for local development (
npx supabase start) [remotes.staging]: Configuration for staging project (rzfzikcargkoyhgqllap)[remotes.production]: Configuration for production project (zkgxozahyczcnzpwhbbf)
docs/development/SUPABASE_MULTI_ENV_SETUP.md for complete documentation.
Frontend Environment Variables
The.env file controls which Supabase project the frontend application connects to:
- Local: Use credentials from
npx supabase statusoutput - Staging: Use staging credentials (see Staging section above)
- Production: Use production credentials (see Production section above)
Last updated: 2026-01-16