Skip to content

refactor(content): remove the Google Sheet code now production runs on Payload - #61

Merged
maxitect merged 4 commits into
mainfrom
feat/49-remove-the-google-sheet-code-after-a-week-on
Nov 26, 2026
Merged

maxitect merged 4 commits into
mainfrom
feat/49-remove-the-google-sheet-code-after-a-week-on

Conversation

@maxitect

@maxitect maxitect commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What

Step 6 of the #33 switchover: removes the Google Sheet code from the repo now that production has run on Payload since 12 November 2026.

Changes

  • The sheet source, fetchSheet, the CSV parsers, the content:import and content:compare scripts and their files are gone; content.ts reads Payload only. BilingualPage and CarouselPhoto now live in payload.ts.
  • papaparse and @types/papaparse are removed, since nothing else used them.
  • SHEET_CSV_URL is gone from the code, CI and the docs (README, INSTRUCTIONS.md). There was no .env.example in the repo; the README env block now lists DATABASE_URL and PAYLOAD_SECRET.
  • CI's build step now passes DATABASE_URL and PAYLOAD_SECRET from repository secrets, because the site no longer builds without a database (see Notes).

Acceptance criteria

AC Result Method Evidence
No Google Sheets request in the code PASS code AC1 below
No sheet request in function logs over a day after deploy AFTER MERGE deploy Notes, step 4
/, /about, /tour, /music, /lyrics, /sitemap.xml, /llms.txt, .md pages answer 200 with the same content PASS api AC2 below
Production and CI builds pass without SHEET_CSV_URL PASS cli AC3 below
Published sheet URL returns an error AFTER MERGE deploy Notes, step 3

Closes

Closes #49

Notes

Pre-check: nothing has gone wrong on Payload since the switch. Production is on one ready deploy from 13 Nov 23:47 UTC, and every page answers 200 today (AC2).

Left out on purpose, because they are outward-facing and would remove the rollback path before this merges. After merging, in this order:

  1. Done: repository secrets DATABASE_URL (Neon dev branch) and PAYLOAD_SECRET are set in GitHub Actions, and CI passes with them.
  2. Check the production deploy is ready and the pages still answer 200.
  3. Unpublish the Google Sheet "www.ClarksBowlingClub.com" (File, Share, Publish to web, Stop publishing). Then curl -i the published CSV URL and confirm an error status. This also closes the published-link point of Security hardening: headers, CMS URLs, email and account settings #34.
  4. Remove SHEET_CSV_URL from the Netlify environment variables and from the GitHub Actions repository variables. After a day, confirm the Netlify function logs show no request to docs.google.com.

Review

Verdict: ALL CLEAR
Rounds: 3

Finding Severity Resolution
CI check fails: pnpm build has no DATABASE_URL/PAYLOAD_SECRET ("missing secret key"), so the CI half of AC3 is unproven critical fixed: repository secrets added; CI run 45881059229 on c17ec69 passes
README env block lists the Payload variables but not the S3_* storage ones Payload reads suggestion fixed in c17ec69

Re-verified: AC1 (code, git grep no match, papaparse gone from lockfile) PASS · AC2 (api, deploy preview: 11 routes 200) PASS · AC3 (cli) local build PASS, CI check PASS without SHEET_CSV_URL · main unmoved (merge base a315291), PR mergeable · check.sh PASS

Evidence

AC1

$ git grep -n -i "SHEET_CSV\|fetchSheet\|docs.google.com/spreadsheets\|content:import\|content:compare" -- . ':!pnpm-lock.yaml'
(no output, exit 1)

AC2

local = this branch served with `pnpm start`, prod = https://clarksbowlingclub.com
/ 200 200   /about 200 200   /tour 200 200   /music 200 200   /lyrics 200 200
/sitemap.xml 200 200   /llms.txt 200 200   /about.md /tour.md /music.md /lyrics.md 200 200
llms.txt, about.md, tour.md, music.md, lyrics.md: byte-identical (cmp)
/, /about, /tour, /music, /lyrics: text identical once scripts and tags are stripped (both languages are in the HTML)
/sitemap.xml: differs only in <lastmod> timestamps

AC3

$ .claude/skills/ticket/scripts/check.sh
CHECK PASS: lint typecheck build

$ env -i PATH HOME DATABASE_URL PAYLOAD_SECRET pnpm build   (no SHEET_CSV_URL, no other variables, .env.local hidden)
exit 0, all routes listed

$ pnpm build with DATABASE_URL and SHEET_CSV_URL both unset
Error: missing secret key. A secret key is needed to secure Payload.  (hence the CI secrets)

@netlify

netlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for clarksbowlingclub ready!

Name Link
🔨 Latest commit c17ec69
🔍 Latest deploy log https://app.netlify.com/projects/clarksbowlingclub/deploys/6b08831632e06bff9acb718d
😎 Deploy Preview https://deploy-preview-61--clarksbowlingclub.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@maxitect
maxitect marked this pull request as ready for review November 26, 2026 19:49
@maxitect
maxitect merged commit 2c25ab7 into main Nov 26, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the Google Sheet code after a week on Payload

1 participant