Skip to Content

Ngrok

We use ngrok to expose our local payment’s webhook endpoint to the internet while having a static URL for it.

This is required for the local development and testing of the payment providers’ webhooks.

Setup

  1. Login to ngrok and copy the authtoken.
  2. Run bunx vercel env add NGROK_AUTHTOKEN development and paste the copied value.
  3. Create a new static domain and copy the created domain.
  4. Run bunx vercel env add NGROK_URL development and paste the copied domain.
  5. Run bun env to update the .env file.
💡
Tip

If you need the generated static URL, it’s accessible in the .env file. It’s also accessible at https://dashboard.ngrok.com/domains.

Last updated on