From 1473eee4fdf58b796bbdeb9f91622987105ae0f6 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Mon, 9 Jun 2025 18:17:32 -0500 Subject: [PATCH] Fix returning setup page when event can't be found for pubkey --- .changeset/shy-shrimps-lose.md | 5 +++++ src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/shy-shrimps-lose.md diff --git a/.changeset/shy-shrimps-lose.md b/.changeset/shy-shrimps-lose.md new file mode 100644 index 0000000..ebc6647 --- /dev/null +++ b/.changeset/shy-shrimps-lose.md @@ -0,0 +1,5 @@ +--- +"nsite-gateway": patch +--- + +Fix returning setup page when event can't be found for pubkey diff --git a/src/index.ts b/src/index.ts index c786849..ed8f384 100644 --- a/src/index.ts +++ b/src/index.ts @@ -63,7 +63,7 @@ app.use(async (ctx, next) => { app.use(async (ctx, next) => { let pubkey = await resolvePubkeyFromHostname(ctx.hostname); - let fallthrough = true; + let fallthrough = false; if (!pubkey && NSITE_HOMEPAGE && (!PUBLIC_DOMAIN || ctx.hostname === PUBLIC_DOMAIN)) { const parsed = nip19.decode(NSITE_HOMEPAGE); // TODO: use the relays in the nprofile