Builds and versions
Every deploy produces a build, and exactly one is production at a time.dist/client are served directly, and dist/server runs your server code.
Secrets
App secrets are encrypted bindings that become environment variables at runtime.--app app_xxxxxxxx. whop apps dev injects the same secrets locally, except names that control the local runtime. An environment variable you export yourself always wins.
The runtime also sets:
These names are reserved — a secret of the same name is ignored.
Call the Whop API
Server-sidefetch calls pass through an outbound proxy that attaches the app’s API key to Whop API requests:
src/routes/api.account.ts
- Only server-side calls are signed. A browser
fetchleaves the visitor’s machine, not your server — route those through your own handler. - Send
x-whop-inject-key: noneto leave a server-side request unauthenticated.
Logs
The runtime captures everyconsole.log, uncaught exception, and failed request for 7 days.
--created_after and --created_before with ISO 8601 timestamps to select a window. Client-side JavaScript errors aren’t here — they’re in the visitor’s browser console.
Next steps
Track visitors
The pixel is already installed — add your own events.
Blueprints
Start from a working business instead of an empty project.
Accept payments
Sell directly from the site you’re hosting.
CLI reference
Every
whop apps command.
