From c0109dc01fac08e63f2c4917106d18aa6b591c38 Mon Sep 17 00:00:00 2001 From: Richard Tan Date: Mon, 2 Dec 2024 11:18:02 +0800 Subject: [PATCH] Fix stripe script forward tcp error --- README.md | 2 +- packages/realm-server/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fa03b6e38..0498995c37 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ There is some pre-setup needed to enable free plan on development account: 1. Go to `packages/realm-server` and run stripe script to listen for the webhooks that Stripe sends to the realm server ``` -pnpm stripe listen --forward-to localhost:4201/_stripe-webhook --api-key sk_test_api_key_from_the_sandbox_account +pnpm stripe listen --forward-to host.docker.internal:4201/_stripe-webhook --api-key sk_test_api_key_from_the_sandbox_account ``` 2. You will get webhook signing secret from stripe cli after Step 1 is done diff --git a/packages/realm-server/package.json b/packages/realm-server/package.json index 1c19c1b13a..3a9b55fead 100644 --- a/packages/realm-server/package.json +++ b/packages/realm-server/package.json @@ -97,7 +97,7 @@ "lint:glint": "glint", "full-reset": "./scripts/full-reset.sh", "sync-stripe-products": "NODE_NO_WARNINGS=1 PGDATABASE=boxel PGPORT=5435 ts-node --transpileOnly scripts/sync-stripe-products.ts", - "stripe": "docker run --rm -it stripe/stripe-cli:latest" + "stripe": "docker run --rm --add-host=host.docker.internal:host-gateway -it stripe/stripe-cli:latest" }, "volta": { "extends": "../../package.json"