1
Enable Supabase SSR cookies with Vike Cloudflare
Source: supabase/supabase#38024 · opened by @unknown
Problem:
• Using @supabase/ssr with createServerClient in Vike + Hono + Cloudflare breaks SSR cookies.
• apply(app) intercepts SSR responses, preventing supabaseMiddleware from setting headers/cookies.
Consequences:
• SSR pages never get session cookies.
• Client hydration cannot access Supabase session.
• Only API routes work; SSR is broken for auth pages.
Request:
• Supabase + Vike integration needed to propagate cookies correctly for SSR.
• Using @supabase/ssr with createServerClient in Vike + Hono + Cloudflare breaks SSR cookies.
• apply(app) intercepts SSR responses, preventing supabaseMiddleware from setting headers/cookies.
Consequences:
• SSR pages never get session cookies.
• Client hydration cannot access Supabase session.
• Only API routes work; SSR is broken for auth pages.
Request:
• Supabase + Vike integration needed to propagate cookies correctly for SSR.
No pledges yet. Be the first to back this.
Comments
Similar requests
supabase/ssr: Offer other means of storing/sending session data other than cookies
3 votes · 0 comments
Integrate SSR package instead of auth helpers into tutorials
1 vote · 0 comments
Make auth JWTs http-only cookies (by default)
11 votes · 0 comments
Ability To Reduce Cookie Size by Excluding Metadata
11 votes · 0 comments
Error 502 with Supabase client when using Nginx as a reverse proxy
19 votes · 0 comments
No comments yet.