Run your local setup inside of a Whop iFrame with the Whop proxy
If you are building a Whop app inside of our website, you can use this proxy to run your local setup inside of a Whop iFrame.
You can use this proxy with any application written in any language and any framework.
This will run the proxy as an independent process. It will start a server on
port 3000 and forward requests to port 5000 and append the user token in the
headers.
The proxy can be configured using the following command line options:
Copy
Ask AI
Usage: pnpm dlx @whop-apps/dev-proxy [options]Options:--proxyPort <port> The port the proxy should listen on (3000 by default)--upstreamPort <port> The port the upstream server is listening on (set automatically by default)--npmCommand <command> The npm command to run to start the upstream server (dev by default)--command <command> The command to run to start the upstream server (npm run dev by default)--standalone Run the proxy as an independent process proxying requests from one port to another port. Ignores the command / npmCommand options.