Skip to content

Commit 332a4cf

Browse files
r8a5claude
andcommitted
Repo split: pages-seo is now product-only
This public repo now contains just the SEO product — admin, blog, programmatic landing pages, calendar, API, schema, cron, CLI installer. The marketing/installer surface that runs on the maintainer's seo.benjaminb.xyz lives in a separate private repo (Benjamin-Bloch/pages-seo-site) so users who fork this one only see the product. Removed from this repo: - public/index.html (was the maintainer's marketing page) → replaced with a small sign-in landing - public/install.html (browser installer) - public/install/run.{sh,py,js} (terminal installers) - public/update.html (browser updater) - public/sign-in.html (folded into index.html) - public/marketing.css (marketing-only styles) - public/_headers (only had install/run.* MIME rules) - functions/_middleware.js (only gated installer surface) - functions/_lib/maintainer.js (only consulted by the middleware) - functions/_lib/oauth_cookie.js (only used by /api/update) - functions/api/install/* (provisioner + check) - functions/api/update/* (diff + OAuth + sync + rebuild) - schema: install_state table (only used by the browser installer; the corresponding bundled schema.js was re-built from init.sql) - settings.is_maintainer key (only the dropped middleware read it) Everything else is unchanged — same admin SPA, same blog/prog routes, same /api/admin/* surface, same setup wizard, same calendar planner, same updates tab (which is the in-product "check upstream" feature; it's separate from the maintainer-only /update site). Users who clone or fork this repo from now on get a clean product tree they can deploy via the CLI installer at seo.benjaminb.xyz/install — that site reads THIS repo as upstream. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5496465 commit 332a4cf

24 files changed

Lines changed: 53 additions & 4512 deletions

functions/_lib/maintainer.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

functions/_lib/oauth_cookie.js

Lines changed: 0 additions & 105 deletions
This file was deleted.

functions/_lib/schema.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -319,25 +319,4 @@ CREATE TABLE IF NOT EXISTS site_aliases (
319319
updated_at INTEGER NOT NULL
320320
);
321321
CREATE INDEX IF NOT EXISTS idx_aliases_kind ON site_aliases(kind);
322-
323-
-- Installer state. One row per install attempt keyed by the project
324-
-- slug + a fingerprint of the API token (we never store the token
325-
-- itself). Lets a half-finished install resume on retry rather than
326-
-- restarting from step 1.
327-
CREATE TABLE IF NOT EXISTS install_state (
328-
project TEXT NOT NULL, -- pages slug the user chose
329-
token_fp TEXT NOT NULL, -- sha256 of the token, first 16 hex chars
330-
account_id TEXT,
331-
d1_id TEXT,
332-
r2_name TEXT,
333-
pages_created INTEGER NOT NULL DEFAULT 0, -- 0 | 1
334-
deploy_started INTEGER NOT NULL DEFAULT 0, -- 0 | 1
335-
pages_url TEXT,
336-
last_error TEXT,
337-
last_step TEXT,
338-
created_at INTEGER NOT NULL,
339-
updated_at INTEGER NOT NULL,
340-
PRIMARY KEY (project, token_fp)
341-
);
342-
CREATE INDEX IF NOT EXISTS idx_install_updated ON install_state(updated_at DESC);
343322
`;

functions/_lib/settings.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ const FALLBACK = {
4949
// Update-check metadata. Written when the operator installs from
5050
// /install (browser path) so the Updates admin tab can compare the
5151
// installed commit to upstream HEAD and offer a one-click rebuild.
52-
// Set to '1' on the upstream maintainer's deployment so the
53-
// installer / updater pages (/install, /update, /install/run.*) stay
54-
// accessible there. Every fresh user install starts with this
55-
// empty, so those routes 404 on user-facing domains. Read via
56-
// is_maintainer(env) in _lib/maintainer.js.
57-
is_maintainer: () => '',
5852
install_method: () => '', // 'browser' | 'cli' | ''
5953
installed_sha: () => '', // upstream main commit SHA at install time
6054
install_repo_owner: () => '', // user's GitHub fork owner

functions/_middleware.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

functions/api/install/check.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)