Env Vars

Env Vars

Typed access via getServerEnv() in lib/env.ts. Production values live in Vercel (tryvio-shopify project). Local: apps/web/.env.local.

Shopify

VarNotes
SHOPIFY_CLIENT_ID / SHOPIFY_API_KEYApp client id (e0ee11a21417810ac0b21a7cf6898855)
SHOPIFY_CLIENT_SECRETApp secret
SHOPIFY_APP_URLhttps://app.tryvio.ai (used for callbacks, demo garment URLs)
SHOPIFY_SCOPESread_products,read_themes,read_customer_events,read_pixels,write_pixels,read_orders,write_discounts
SHOPIFY_API_VERSIONAdmin API version (2026-01)
SHOPIFY_STORE_DOMAINConfigured/default shop
SHOPIFY_*_CALLBACK_URL, SHOPIFY_WEBHOOK_*_URLCallback/webhook URLs
SHOPIFY_APP_AUTOMATION_TOKENAutomation token

Supabase

VarNotes
SUPABASE_URLProject URL
SUPABASE_ANON_KEYPublic anon key
SUPABASE_SERVICE_ROLE_KEYServer-only admin key (never expose)
TRYVIO_STORAGE_INPUT_BUCKET / OUTPUT / MERCHANT_BUCKETStorage buckets

AI (KIE)

KIE_API_KEY, KIE_API_BASE_URL, KIE_UPLOAD_BASE_URL, KIE_MODEL, KIE_TIMEOUT_MS, KIE_TASK_MAX_POLLS, KIE_TASK_POLL_INTERVAL_MS, KIE_ALLOW_MOCK_FALLBACK.

App / misc

VarNotes
APP_ENVEnvironment marker
TOKEN_ENCRYPTION_KEYEncrypts Shopify access tokens at rest
ADMIN_AUTH_EMAILAdmin/operator login
TRYVIO_TEMP_FILE_MAX_AGE_HOURSStorage cleanup window
TRYVIO_CATALOG_PROVIDER, TRYVIO_*_ROOTCatalog/storage roots
NEXT_PUBLIC_APP_NAMEPublic app name
VERCEL_TOKENCI/deploy token
SHOPIFY_BILLING_TESTWhen true, creates test charges (off in prod)
TRYVIO_DEMO_SHOP_DOMAINDemo store domain (default teststoretryon.myshopify.com)
⚠️

SHOPIFY_BILLING_TEST must be unset/false in production, otherwise subscriptions are test charges. Production also relies on NODE_ENV=production.