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
- Login to ngrok and copy the authtoken .
- Run
bunx vercel env add NGROK_AUTHTOKEN development
and paste the copied value. - Create a new static domain and copy the created domain.
- Run
bunx vercel env add NGROK_URL development
and paste the copied domain. - 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