Next.js Supabase example fails with local Supabase instance (middleware returns null)
The supabase's nextjs example works if I connect a supabase's hosted project, but when I try o connect with my local development env, the middleware (now it's called proxy with the new version of nextjs) returns null at line 47 (the file is lib/supabase/middleware.ts)
To Reproduce
To Reproduce
- pnpm create next-app@latest -e with-supabase
- npx @next/codemod@canary middleware-to-proxy .
- pnpm approve-builds
- pnpm add -D supabase
- pnpm supabase init
- pnpm supabase start
- Put the supabase url and publishable key inside .env.local
- Create an account at supabase local dashboard
Try to login and access /protected route