ARCHE
FamiliesDocsExamplesBlogGitHub ↗
Documentation

Start

  • Getting started
  • Philosophy

Guides

  • First hour
  • Agent context
  • Verification
  • Package managers
  • Scaffold lifecycle
  • Showcase & portfolio

Walkthroughs

  • TypeScript fullstack
  • Convex product
  • Rust API & fullstack
  • Solana family
  • Customize & experiments
  • Automation (JSON/MCP)

CLI

  • Overview
  • Flags
  • Subcommands
  • Generated output

Presets

  • Preset catalog

Stack

  • TypeScript architecture
  • Convex
  • Rust
  • Solana
  • Authentication
  • Prisma store
  • tRPC

Operations

  • Deployment
  • Environment variables
  • Workers & queues
  • CI & testing
  • Scaling
  • Security
  • Troubleshooting

Reference

  • Stack links
  • Capabilities
  • This source repo
  • Code examples
← Documentation

Environment variables

Grouped env vars for web, API, database, Redis, and auth—with a link to the full matrix.

1 min read

Generated projects ship .env.example files per app. This page summarizes groups—not every key for every preset.

Web (apps/web)

VariablePurpose
NEXT_PUBLIC_API_URLtRPC / API origin for browser calls
NEXT_PUBLIC_SITE_URLCanonical site URL for metadata

API (apps/server)

VariablePurpose
DATABASE_URLPostgres (Prisma)
REDIS_URLApp Redis + BullMQ when enabled
ENABLE_REDISfalse for API-only (no worker queues)
BETTER_AUTH_SECRETAuth signing
BETTER_AUTH_URLPublic API URL for auth routes
FRONTEND_URLWeb origin for cookies/CORS

Convex preset

Convex and Better Auth stubs use Convex-specific keys in apps/web/.env.example—no DATABASE_URL on Express.

Full matrix

The canonical list for TypeScript fullstack production paths lives in the template repository:

docs/deployment-env.md

Generated .docs/ topics repeat host-specific values after you choose Path A, B, or C on Deployment.

Next steps

  • Deployment paths
  • Authentication
  • Troubleshooting