-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next Auth 카카오 로그인 #63
Conversation
넵 캐시 파일 올라오는 거 맞아요! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍 고생하셨습니다!!
pageExtensions
설정이랑 pages 하위 routes들 파일명만 원복해주시면 좋을 거 같아요 !
next.config.js
Outdated
}, | ||
pageExtensions: ['page.tsx'], | ||
swcMinify: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거 지우면 안돼요!
src/pages/api/auth/[...nextauth].ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요 파일 때문에 pageExtensions
지우셨으면 [...nextauth].page.ts
하면 되지 않을까 싶어요!
api route를 위 설정과 같이 써보진 않아서 확실하진 않아요 ...!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오..!!! 해보겠습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
흐엉 안되네욥..ㅠ
Deploying with Cloudflare Pages
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #63 +/- ##
==========================================
+ Coverage 97.52% 97.96% +0.44%
==========================================
Files 17 29 +12
Lines 121 197 +76
Branches 23 33 +10
==========================================
+ Hits 118 193 +75
- Misses 3 4 +1
☔ View full report in Codecov by Sentry. |
Bundle SizesCompared against 25bf0fe
Dynamic import: None found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~
@@ -14,7 +14,7 @@ const nextConfig = { | |||
appDir: false, | |||
forceSwcTransforms: true, | |||
}, | |||
pageExtensions: ['page.tsx'], | |||
pageExtensions: ['page.tsx', 'page.ts'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
clientId: process.env.KAKAO_CLIENT_ID, | ||
clientSecret: process.env.KAKAO_CLIENT_SECRET, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NEXT_PUBLIC 프리픽스 없어도 작동하나유?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네넹 되긴하던데 깔끔하게 붙여서 다시 올렸어유~
@oyeon-kwon 요거 배포 환경에서 안되는 것 해결하고 머지하면 좋을 거 같아요 !
|
공식문서에 보면 vercel이나 netlify도 마찬가지로 랜덤url 생성되는 미리보기 배포가 있는데, 그래서 NEXTAUTH_URL을 안써도 된다고 나오더라구요! 근데 cloudflare에 대한 정보는 없길래 next-auth 레포에 질문 올려놨습니당 답변 오면 조치해볼게요!! |
https://next-auth.js.org/deployment#example 뭔가 이 예제처럼 preview 환경일 때 ... 를 따로 핸들링해줘야하나도 싶네요 🤔 |
실패... 주르륵 |
🤔 해결하려는 문제가 무엇인가요?
close #44
🎉 변경 사항
🙏 여기는 꼭 봐주세요!
사용 방법
👉 env 노션 문서
🌄 스크린샷
📚 참고