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