Skip to content
supastack
Browse documentation
WebNext.js

For AI agents: fetch the complete documentation index at /llms.txt, the full documentation corpus at /llms-full.txt, the agent skill at /skill.md, or this page as Markdown at /docs/web/deployment.md (or send Accept: text/markdown).

Deployment checklist

Prepare the production dependencies and verify the flow you intend to ship.

Prepare a public app in this order

Deployment means running your app on a hosting service so other people can visit it. localhost is accessible only in your development environment. First finish real database-backed sign-in locally, choose a hosting guide below, create a separate test database, and configure the host's environment settings with the actual public HTTPS app URL. Keep local demonstration settings separate from the public app.

In a second terminal at the repository root, run the Web checks below. A successful build creates a production version on your computer; it does not upload or publish it. Do not confuse corepack pnpm --filter @supastack/web start with deployment: start runs the previously built version locally. Run it only after stopping the development server on port 3000.

Follow the chosen host's guide for migration, environment and launch steps. Test sign-up, an email code, saved account data after a restart and a paid feature in the provider's sandbox before opening sales. A mobile or desktop client must point to this running HTTPS backend. Releasing a native app is a separate step documented in its platform's distribution guide.

corepack pnpm --filter @supastack/web typecheck
corepack pnpm --filter @supastack/web build

Prepare the services

Create the Postgres database, apply the repository's migrations and enter your public app URL and authentication settings in the hosting dashboard. Choose one supported Web billing provider and one transactional email provider for the features you enable. Configure Trigger.dev when your product uses its background workflows; you do not need every integration to publish a basic app.

Configure the immutable model/price catalog and workspace AI policy before accepting production AI tasks. An empty alias policy should leave those choices unavailable.

Build and deploy the web application

Run the Web commands below from the repository root and resolve any error before continuing. typecheck checks the types, test runs the Web tests, and build creates production files locally. Follow your selected hosting guide to upload and run them with its server-side environment settings. These commands do not deploy the app.

corepack pnpm --filter @supastack/web typecheck
corepack pnpm --filter @supastack/web test
corepack pnpm --filter @supastack/web build

Verify the deployed boundaries

Verify sign-in and persistence against the deployed database; test workspace isolation; confirm Stripe sandbox webhook processing and entitlement changes; and run a background task through result persistence and transactional delivery.

Read docs/real-provider-smoke.md and docs/production-ai-runtime.md in the repository for the explicit provider acceptance process. A successful build or intercepted browser test does not establish these external outcomes.

Frequently asked questions

14 questions

What is supastack?

supastack is a modular foundation for building AI-powered SaaS products. It brings together common infrastructure so you can focus on product-specific features.

Does it support web and mobile?

Yes. supastack includes Next.js and Expo apps as starting points for web and mobile experiences.

What authentication is included?

Better Auth covers email OTP, magic-link, and social sign-in; email/password stays available at the API layer and through the Auth.js credentials engine for products that need it. Personal workspaces are provisioned with the account so product records stay scoped from day one.

How does it support AI?

supastack includes configurable multi-provider AI, usage tracking, budgets, and encrypted bring-your-own-key support.

How are subscriptions handled?

For products built on the kit, Stripe billing, subscriptions, and entitlements form the paid-access foundation. Provider secrets stay server-only.

Where does my product-specific code live?

Product-specific features remain in a separate codebase while the product configures and integrates supastack’s foundation modules.

How does supastack pricing work?

The kit is a one-time purchase with lifetime updates: One Platform at $249 (temporary launch price, $100 off the regular $349) — your pick of Next.js (Web), Expo (iOS & Android), or Tauri (macOS & Windows Desktop) — or the All Platforms Bundle at $499 (temporary launch price, $100 off the regular $599) with every platform and the full monorepo, plus $75 per extra developer seat. No kit subscription. Checkout on this site delivers your license key by email, with repository access via GitHub invite.

How do workspaces scope my data?

User-owned records are scoped by workspaceId. Identity, entitlements, AI usage, billing events, and audit entries stay inside the personal workspace boundary.

How do background jobs work?

Trigger.dev is the explicit job runtime. The JobRunner contract only promises enqueue, status, and cancel—workflow semantics stay Trigger.dev-specific and explicit.

How is email different from outreach?

Transactional email covers product workflows such as completion notices. Cold outreach and campaigns are product concerns outside this kit’s email module.

How do mobile purchases work?

Mobile includes native purchases and restore through RevenueCat, with access verified by your server. Configure the store accounts and complete device testing before release. Web billing remains separate.

Where do AI provider keys live?

Bring-your-own-key credentials are encrypted and stay server-only. Keys are redacted from logs; usage and budgets remain visible at the workspace level.

Which payment methods does checkout accept?

The Stripe-hosted checkout accepts cards and can also offer Alipay and WeChat Pay once those wallets are enabled on the Stripe account — handy for buyers in China. Wallet authorizations confirm asynchronously, so the license page updates as soon as the payment clears.

Can I get a refund?

After you've got access to the repository, supastack is yours forever, so it cannot be refunded. But rest assured, you get the complete source code with lifetime updates to build and ship unlimited products for yourself or clients. You just cannot resell the code or redistribute the repository as a starter kit or template.

EN
Theme