Use the development proxy to match the production whop proxy behaviour in your local setup.
This means authentication and headers will work out of the box on local too.
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.