services:
  - type: web
    name: saas-backend
    env: node
    plan: free
    buildCommand: npm install && npm run build
    startCommand: npm run start:prod
    envVars:
      - key: NODE_ENV
        value: production
      - key: DATABASE_URL
        sync: false
      - key: JWT_SECRET
        sync: false
      - key: PORT
        value: 3000
      - key: PUBLIC_WEBSITE_URL
        sync: false
      - key: NEXT_PUBLIC_PUBLIC_WEBSITE_URL
        sync: false
