1. 이곳에서 database 생성하고 키 생성해서 .env.local 구축하기
https://supabase.com/docs/guides/auth/quickstarts/nextjs
Use Supabase Auth with Next.js | Supabase Docs
Learn how to configure Supabase Auth for the Next.js App Router.
supabase.com
2. 이곳에서 필요한 패키지 깔고 필요한 구도 갖추기
https://supabase.com/docs/guides/auth/server-side/nextjs
Setting up Server-Side Auth for Next.js | Supabase Docs
Be careful when protecting pages. The server gets the user session from the cookies, which can be spoofed by anyone. Always use supabase.auth.getUser() to protect pages and user data. Never trust supabase.auth.getSession() inside server code such as middle
supabase.com
'개발 > NEXTJS' 카테고리의 다른 글
병렬라우팅과 일반 컴포넌트 방식 비교 (1) | 2025.01.22 |
---|---|
바뀐 Nextjs 외부 Image 도메인 설정 (0) | 2025.01.21 |
Next.js Image 컴포넌트의 width, height, sizes, srcset 이해하기 (0) | 2025.01.06 |
Next.js 15의 새로운 데이터 페칭 전략 이해하기 (0) | 2025.01.05 |
React와 Next.js의 캐시 전략 이해하기 (0) | 2025.01.05 |