From 5d35a7ff3ed11b0d04c9fd1a8e3d03188d4d0889 Mon Sep 17 00:00:00 2001 From: Bram Borggreve Date: Fri, 8 Mar 2024 07:38:49 +0000 Subject: [PATCH] feat: add ngrok run script --- README.md | 4 ++++ package.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0dc7ab2..9dc7f6d 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/package.json b/package.json index dc3ee70..32fc34f 100644 --- a/package.json +++ b/package.json @@ -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": {