Skip to content

Commit 199e192

Browse files
committed
reset-secret
1 parent 80ae69b commit 199e192

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

client/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if (!WEBHOOKS_PROXY_TUNNEL_SECRET) {
4646
"WEBHOOKS_PROXY_TUNNEL_SECRET is not set. Anyone can connect to the tunnel."
4747
);
4848
console.warn(
49-
"Please set the WEBHOOKS_PROXY_TUNNEL_SECRET by running `npm run set-secret` in the `./worker` directory."
49+
"Please set the WEBHOOKS_PROXY_TUNNEL_SECRET by running `npm run reset-secret` in the `./worker` directory."
5050
);
5151
}
5252

worker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ To deploy this worker you need to register at Cloudflare. The Free plan should b
66

77
```bash
88
npm i
9-
npm run generate-secret
9+
npm run reset-secret
1010
npm run deploy
1111
```
1212

worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dev": "wrangler dev",
1212
"start": "wrangler dev",
1313
"cf-typegen": "wrangler types",
14-
"set-new-secret": "./set-new-secret.sh"
14+
"reset-secret": "./reset-secret.sh"
1515
},
1616
"devDependencies": {
1717
"prettier": "^3.5.3",

worker/src/setSecretAside.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function setSecretAside(): string {
22
return `<aside class="warning">
33
<p>⚠️ Tunnel secret (<code>WEBHOOKS_PROXY_TUNNEL_SECRET</code>) is not set. Anyone can connect to any tunnel knowing the tunnel URL.</p>
4-
<p>To set the secret, run <code>npm run set-new-secret</code> in the <code>./worker</code> directory.</p>
4+
<p>To set the secret, run <code>npm run reset-secret</code> in the <code>./worker</code> directory.</p>
55
</aside>`;
66
}

0 commit comments

Comments
 (0)