Documentation Index
Fetch the complete documentation index at: https://docs.opensync.dev/llms.txt
Use this file to discover all available pages before exploring further.
Environment Variables
Complete reference for all environment variables.Required Variables
Frontend (Vite)
Backend (Convex)
Hosting Platform
Optional Variables
OpenAI (for semantic search)
Variable Reference
| Variable | Required | Where | Description |
|---|---|---|---|
VITE_CONVEX_URL | Yes | Frontend | Convex deployment URL |
WORKOS_API_KEY | Yes | Convex | WorkOS API key |
WORKOS_CLIENT_ID | Yes | Convex + Frontend | WorkOS client ID |
WORKOS_COOKIE_PASSWORD | Yes | Frontend | Cookie encryption key |
OPENAI_API_KEY | No | Convex | OpenAI API key for embeddings |
Setting Variables
Convex
Netlify
- Go to Site settings > Environment variables
- Click Add a variable
- Enter key and value
Vercel
- Go to Settings > Environment Variables
- Add variables for Production/Preview/Development
Local Development
Create a.env.local file in the project root:
Generating Secrets
ForWORKOS_COOKIE_PASSWORD:
Troubleshooting
”VITE_CONVEX_URL is undefined”
- Ensure the variable starts with
VITE_for Vite to expose it - Restart the dev server after adding variables
”WorkOS authentication failed”
- Verify
WORKOS_API_KEYandWORKOS_CLIENT_IDmatch your WorkOS dashboard - Check that redirect URIs are configured
”Cookie not set”
WORKOS_COOKIE_PASSWORDmust be at least 32 characters