> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formbase.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Running in Production

> Checklist for a stable and secure deployment.

Before you go live, ensure your Formbase instance has stable storage, email delivery, and a secure public URL. The checklist below mirrors how the app behaves in production.

## Production checklist

* Set `NEXT_PUBLIC_APP_URL` to your public domain.
* Use HTTPS (TLS) at your reverse proxy or hosting platform.
* Configure database backups and storage bucket backups.
* Configure SMTP or Resend for auth and submission emails.
* Set `ALLOW_SIGNIN_SIGNUP=false` if you want to restrict new accounts.
* Add rate limiting at the edge for `/s/*` endpoints.

## Build and run

```bash theme={null}
# From the repo root
bun install
bun run build
bun --cwd apps/web run start
```

## Reverse proxy headers (Nginx)

```nginx theme={null}
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
```

<Callout type="note">
  Use a staging environment when upgrading. Form submissions are real data, and rollbacks should be tested.
</Callout>
