-
Notifications
You must be signed in to change notification settings - Fork 2
Feat[THKV-157] : 400, 500 에러 페이지 구현 #154
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
Conversation
plla2
left a comment
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/app/error.tsx
Outdated
| import Link from 'next/link'; | ||
| import { useRouter } from 'next/navigation'; | ||
| import Lottie from 'lottie-react'; | ||
| import CarrotAnimation from '../../public/animations/carrot.json'; |
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.
경로가 public이라 /animations 로 바로 들어가도 될 것 같습니다!
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.
처음에 절대경로로 해봤는데 import 가 안 되더라고요... 그래서 불가피하게 상대경로로 넣어두었습니다.
절대 경로 유지하려면, src 안에 assets 폴더 따로 만들어서 넣으면 될거같은데 새로 커밋 올려둘게여!
Feat[THKV-157] : 400, 500 에러 페이지 구현
유형
작업 내용
스크린샷
리뷰 요구사항