HomeDocDocumentation QuoteFlowConfiguration

Configuration

Configuration

Estimated reading: 1 minute 13 views

Configuration & Environment Variables

Variables and config files required for deployment.

.envEnvironment variables
# PostgreSQL database (Neon.tech in prod, SQLite locally)
DATABASE_URL="postgresql://user:pass@host/dbname?sslmode=require"

# Shopify App credentials
SHOPIFY_API_KEY="your_api_key"
SHOPIFY_API_SECRET="your_api_secret"
SCOPES="read_products,write_products,write_draft_orders,..."

# SMTP for transactional emails
SMTP_HOST="smtp.example.com"
SMTP_PORT=587
SMTP_USER="noreply@example.com"
SMTP_PASS="your_smtp_password"
SMTP_FROM="QuoteFlow <noreply@example.com>"

# Shopify billing (true in dev, false in prod)
SHOPIFY_BILLING_IS_TEST="true"

Deployment commands

npm run dev

Start development with Shopify CLI + Vite HMR

npm run build

Production build with esbuild + Vite

prisma migrate dev

Apply schema migrations in development

prisma migrate deploy

Apply schema migrations in production

shopify app deploy

Deploy theme extension to Shopify Partners

npm run lint

ESLint + Prettier check across the codebase

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this Doc

Configuration

Or copy link

CONTENTS