Skip to content

feat: run self-hosted without Supabase credentials (no-account previe…#86

Merged
yakew7 merged 1 commit into
StudentSuite:mainfrom
yakew7:main
Jul 6, 2026
Merged

feat: run self-hosted without Supabase credentials (no-account previe…#86
yakew7 merged 1 commit into
StudentSuite:mainfrom
yakew7:main

Conversation

@yakew7

@yakew7 yakew7 commented Jul 6, 2026

Copy link
Copy Markdown
Member

feat: run self-hosted without Supabase credentials (no-account preview mode)

Closes #72. Previously the app crashed on every route when Supabase env
vars were unset, because proxy.ts (and the client/server factories) called
createServerClient/createBrowserClient unconditionally, which throws
"Your project's URL and Key are required to create a Supabase client!".

Add an isSupabaseConfigured() gate and degrade cleanly when it's false:

  • supabase/client.ts + server.ts return null instead of throwing
  • proxy.ts skips session refresh; auth/callback redirects home
  • navbar hides sign in/out; /login shows a preview-mode notice
  • map saved-places layer and calendar personal events stay hidden
  • user-places/user-events CRUD guarded behind requireClient()

The public map, filters, search, and calendar work with zero Supabase
setup, so contributors can preview their map entries locally before
opening a PR. With credentials present, auth and private features are
unchanged.

@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

@yakew7 is attempting to deploy a commit to the StudentSuite Team on Vercel.

A member of the Team first needs to authorize it.

@yakew7 yakew7 merged commit 5e7040c into StudentSuite:main Jul 6, 2026
3 of 4 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.

[feature] Self-Hostable Version of StudyMap to Preview Map w/o Supabase Credential Requirement

1 participant