Skip to content

Remove dead Supabase env vars from deploy workflow - #277

Merged
manav4u merged 1 commit into
mainfrom
fix/deploy-drop-supabase-env
Nov 7, 2026
Merged

manav4u merged 1 commit into
mainfrom
fix/deploy-drop-supabase-env

Conversation

@manav4u

@manav4u manav4u commented Nov 7, 2026

Copy link
Copy Markdown
Owner

What

Removes the 4-line env: block from the Build step in .github/workflows/deploy.yml that injected VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY. No other changes; no source, content, or landing-page changes.

Why

The README says study data stays in the browser with no cloud sync, but the deploy workflow injected Supabase credentials at build time. Trace findings:

  • No code reads them. A repo-wide search for supabase, VITE_SUPABASE and createClient matches only this workflow file. @supabase/supabase-js is not in package.json, and no import.meta.env reference exists anywhere.
  • It is a leftover. Supabase was removed from the codebase on 2026-02-10 ("Refactor: Move App.tsx to root, implement local DataContext, remove Supabase" 1df69d4, plus deletions of lib/, supabase/, .env.example and the Supabase setup docs). The env block survived from the 2026-02-09 auth-migration commit 4e49ac7.
  • Nothing reaches the site. Verified with a local production build: both vars were set to unique marker values, npm run build was run, and the markers appear nowhere in dist/. Vite only embeds VITE_* vars that code actually references. So no user data went to Supabase and no credential shipped in the deployed bundle. The mismatch was dead config contradicting the docs, not live data flow.

After merge (manual follow-up)

The VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY repository secrets can be deleted (Settings → Secrets and variables → Actions); nothing references them after this.

The PR-check workflow (typecheck, tests, build) does not need these vars — the build above passed with them unset in effect.

Supabase was removed from the codebase in Feb 2026; no source file, dependency or import.meta.env reference remains. Vite only embeds VITE_* vars that code actually reads, so these injected values never reach the bundle. Removing the dead env block aligns the deploy workflow with the README local-only claim.
@manav4u
manav4u marked this pull request as ready for review November 7, 2026 17:39
@manav4u
manav4u merged commit b7a1acd into main Nov 7, 2026
1 of 2 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.

1 participant