Environments & Deploy

Environments & Deploy

Current state (single env)

Everything runs on production today. There is no staging/dev separation yet — see the project-infra-roadmap memory note for the planned 3-environment setup (separate Supabase projects, separate Shopify apps per env, Supabase CLI migrations, GitHub Actions CI).

Deploying the web app

⚠️

GitHub auto-deploy is not reliable for this project. Always deploy manually with the Vercel CLI after pushing.

cd apps/web
npx vercel --prod

The deploy aliases to app.tryvio.ai. The .vercel/ link in apps/web targets the tryvio-shopify Vercel project.

Deploying the docs sites

# public customer docs → docs.tryvio.ai (Vercel project "docs")
cd apps/docs && npx vercel --prod --scope mihogv-1894s-projects
 
# internal docs (gated) → Vercel project "docs-internal"
cd apps/docs-internal && npx vercel --prod --scope mihogv-1894s-projects

docs.tryvio.ai needs a DNS record at Namecheap (A docs 76.76.21.21). The internal docs stay behind Vercel Authentication (no public domain).

Deploying Shopify config

When shopify-app/shopify.app.toml changes (scopes, webhooks, app proxy):

cd shopify-app
npx shopify app deploy --allow-updates

Adding a new scope emails installed merchants to re-approve permissions; they keep old permissions until they accept.

Migrations

SQL migrations live in apps/web/supabase/migrations/ and are currently applied manually. Adopting the Supabase CLI (supabase db push) is the first task of the infra roadmap.