Skip to main content

Documentation Index

Fetch the complete documentation index at: https://greenteagentic.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Browser (build-time, via Vite)

VariablePurpose
VITE_SUPABASE_URLSupabase project URL
VITE_SUPABASE_PUBLISHABLE_KEYAnon/publishable key (RLS still applies)
VITE_SUPABASE_PROJECT_IDProject ref
Read in client code with import.meta.env.VITE_*. Values are bundled into the JS output, so never put secrets here.

Server (runtime, via process.env)

VariablePurpose
SUPABASE_URLMirrors the browser URL for SSR
SUPABASE_PUBLISHABLE_KEYServer-side publishable key
SUPABASE_SERVICE_ROLE_KEYAdmin key — bypasses RLS, server only
TEAGENTIC_AI_KEYTeagentic AI Gateway key
Read inside .handler() of a server function, never at module top level (env injection happens at call time).

Storing secrets

In production, set the server-side variables via your hosting provider’s secrets manager (Cloudflare Workers secrets, Vercel env vars, Fly secrets, etc.) — never commit them to the repo. The browser VITE_* values are safe to bake into the build.