From 1e873bbde12e4bd233748203135a7e72e1fa33af Mon Sep 17 00:00:00 2001 From: Derek Hanson Date: Tue, 27 Oct 2026 01:41:29 +0000 Subject: [PATCH] fix(recipes): make the Unfurl live demo public --- recipes/unfurl/README.md | 6 ++++-- recipes/unfurl/site/sf.jsonc | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/recipes/unfurl/README.md b/recipes/unfurl/README.md index aafb65c..c719d93 100644 --- a/recipes/unfurl/README.md +++ b/recipes/unfurl/README.md @@ -48,7 +48,7 @@ Route (app) | [`site/app/u/page.tsx`](./site/app/u/page.tsx) | The SSR page. Renders the card in the HTML and offers the raw JSON in a `
`. | | [`site/app/page.tsx`](./site/app/page.tsx) | The static landing page. No data fetching, so Next prerenders it. | | [`site/middleware.ts`](./site/middleware.ts) | Normalizes a bare-domain `url` param with a 308, stamps security headers. | -| [`site/sf.jsonc`](./site/sf.jsonc) | Optional entry pin: `runtime.kind: "functions"`, `entry: ".open-next/worker.js"`. | +| [`site/sf.jsonc`](./site/sf.jsonc) | Public access for the live demo, plus the Functions entry pin: `runtime.kind: "functions"`, `entry: ".open-next/worker.js"`. | ## Build and publish @@ -102,7 +102,9 @@ build. ### `sf.jsonc` placement `sf.jsonc` goes at the **project root** — beside `package.json`, i.e. `site/`. -It is optional: the CLI auto-detects `.open-next/worker.js` after the build. +It declares `"access": "public"` so the published live demo opens without sign-in, +regardless of the team's default access setting. The Functions entry pin is +optional: the CLI auto-detects `.open-next/worker.js` after the build. Pinning it makes a broken build fail loudly with `config_runtime_entry_missing` instead of silently falling back to a static publish. diff --git a/recipes/unfurl/site/sf.jsonc b/recipes/unfurl/site/sf.jsonc index 39970d2..1eb053b 100644 --- a/recipes/unfurl/site/sf.jsonc +++ b/recipes/unfurl/site/sf.jsonc @@ -1,5 +1,6 @@ { "$schema": "https://spacefast.com/schemas/sf.json", + "access": "public", // Optional. `sf publish` already auto-detects `.open-next/worker.js` after it // builds this Next.js app; pinning it here just makes the intent explicit and // turns a broken build into a loud `config_runtime_entry_missing` instead of a