Skip to content

Conversation

@hyeonjiroh
Copy link
Contributor

🔗 이슈 번호

Closes #18


📋 작업 사항

마커 이미지들 제외하고 src/assets로 경로 변경

  • 마커 이미지들은 URL로 넣어줘야 하기 때문에 public 폴더 안에 넣어야 한다.
  • 나머지 이미지들은 절대 경로로 import 하고 싶어서 다시 src/assets로 경로 변경

@hyeonjiroh hyeonjiroh self-assigned this Jul 9, 2025
@github-actions
Copy link

github-actions bot commented Jul 9, 2025

Preview Deployment
🔗 https://saegil-bkf38prjj-hyeonjirohs-projects.vercel.app

import { RecommendationResponse } from "@/lib/type";
import Image from "next/image";
import Temp from "../../../../../public/images/temp.jpg";
import Temp from "@/assets/images/temp.jpg";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@는 무슨 문법인가용

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@는 절대 경로 alias에요! src 폴더를 기준으로 경로를 작성해주면 됩니다!
상대 경로로 작성하게 되면 볼 때 헷갈리기도 하고, 유지보수도 어려워서 절대 경로를 사용하는 걸로 다시 변경했습니다.

@kimD0ngjun kimD0ngjun merged commit 71a4968 into main Jul 9, 2025
1 check passed
@kimD0ngjun kimD0ngjun deleted the chore/#18/image branch July 9, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chore] 이미지 경로 변경

3 participants