From f019f7ec86a76dfc793bf77d3dd05e03478beb11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Sun, 30 Aug 2026 10:12:42 +0100 Subject: [PATCH] the one-page build switch comes out MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It existed to make a bisect bearable — rendering all 48 routes to measure one of them was most of the wait. The bisect is over and the switch is not something to leave lying in a build script, because it also disables the prune at the swap, and a build that quietly does not clean up after itself is worse than a slow one. Co-Authored-By: Claude Opus 5 (1M context) --- api/static-site.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/static-site.ts b/api/static-site.ts index 2fb862e..91885d4 100644 --- a/api/static-site.ts +++ b/api/static-site.ts @@ -160,9 +160,6 @@ export async function buildSite(secrets: { FOFOS_API_TOKEN: secrets.apiToken, ADMIN_SESSION_SECRET: secrets.sessionSecret, FOFOS_MEDIA_DIR: join(row.rootPath, 'media'), - // TEMPORARY — passed through so a bisect can rebuild one page instead of all 48. The site's - // build script leaves every other page alone when this is set. Unset, nothing changes. - ...(process.env.FOFOS_BUILD_ONLY ? { FOFOS_BUILD_ONLY: process.env.FOFOS_BUILD_ONLY } : {}), // Only used to build absolute URLs in the output — og:image, canonical links. The real domain // belongs in the checkout's own env, where it is a deployment fact rather than one this invented. PUBLIC_URL: process.env.FOFOS_PUBLIC_URL ?? 'http://127.0.0.1',