the one-page build switch comes out
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user