Skip to main content

Configuration Reference

BunShip Pro is configured through environment variables (in .env) and feature flags (in code).

Environment Variables

All variables are defined in .env at the repository root. Copy .env.example to get started.

Application

Database

Authentication

Stripe Billing

Set DEMO_MODE=true to run without Stripe. All billing pages will show mock data.

Email

File Storage (S3)

Redis

OAuth (Optional)

Admin

Frontend Analytics

These are VITE_ prefixed and available to the frontend:

Feature Flags

Feature flags are defined in packages/config/src/features.ts. They control which features are enabled at build time.

Auth Features

Organization Features

Billing Features

To disable a feature, change its value to false in the config file. The frontend and backend both read from this shared config, so changes apply everywhere.

Admin Feature Flags

The admin panel at /admin/feature-flags provides a UI for toggling features at runtime. These are grouped by category: authentication, billing, organizations, and file uploads.

Analytics Setup

To add analytics, set the provider and its key in .env:

Plausible

PostHog

Google Analytics 4

Only one provider can be active at a time.

Next Steps