Skip to content

Commit

Permalink
feat: add ngrok run script
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Mar 8, 2024
1 parent c57d727 commit 5d35a7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ pnpm dev:web
Solana Pay requires https to work, so in development you need something like [ngrok](https://ngrok.com/) to expose your local server to the internet.

Be sure to update the `allowedHosts` property in `web/project.json` to allow the ngrok URL.

```sh
pnpm tunnel
```
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"license": "MIT",
"scripts": {
"dev:api": "nx run api:serve",
"dev:web": "nx run web:serve"
"dev:web": "nx run web:serve",
"tunnel": "ngrok http --domain solana-pay.ngrok.io 4444"
},
"private": true,
"devDependencies": {
Expand Down

0 comments on commit 5d35a7f

Please sign in to comment.