Learn how to build and deploy a Next.js application that integrates with Whop’s platform
.env.local
file with the following variables:
https://your-app.com
)/experience/[experienceId]
)lib/whop-api.ts
:
package.json
:whop-proxy
will by default run the npm dev
script with a custom PORT
environment variable.
Ensure your app correctly responds to this env var.
proxyPort
: which port the proxy should start onupstreamPort
: which port the upstream server should listen onnpmCommand
: override which npm command to run. Can be "dev"
, "start"
, etc..command
: provide a custom shell command to run instead of pnpm dev
app/api/webhooks/whop/route.ts
: