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 developmentand paste the copied value. - Create a new static domain and copy the created domain.
- Run
bunx vercel env add NGROK_URL developmentand paste the copied domain. - Run
bun envto update the.envfile.
💡
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