File tree Expand file tree Collapse file tree 4 files changed +4
-16
lines changed
app/university/[homeUniversity]/[id]
components/ui/UniverSityCard Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 3535### ` .env `
3636- ** 용도** : 모든 환경의 공통 기본값
3737- ** 커밋** : ✅ Git에 포함
38- - ** 내용** : 공통 설정 (CURRENT_TERM, IMAGE_URL 등)
38+ - ** 내용** : 공통 설정 (IMAGE_URL 등)
3939
4040### ` .env.development `
4141- ** 용도** : 로컬 개발 환경 (` npm run dev ` )
Original file line number Diff line number Diff line change 1- # env
2- NEXT_PUBLIC_CURRENT_TERM = 2025-2
3-
41# Shared configuration across all environments
52# Environment-specific values are in .env.development, .env.preview, .env.production
63
Original file line number Diff line number Diff line change @@ -58,10 +58,7 @@ export async function generateMetadata({ params }: PageProps): Promise<Metadata>
5858 }
5959
6060 const homeUniversityInfo = getHomeUniversityBySlug ( homeUniversity ) ;
61- const convertedKoreanName =
62- universityData . term !== process . env . NEXT_PUBLIC_CURRENT_TERM
63- ? `${ universityData . koreanName } (${ universityData . term } )`
64- : universityData . koreanName ;
61+ const convertedKoreanName = universityData . koreanName ;
6562
6663 const baseUrl = process . env . NEXT_PUBLIC_WEB_URL || "https://solid-connection.com" ;
6764 const pageUrl = `${ baseUrl } /university/${ homeUniversity } /${ id } ` ;
@@ -145,10 +142,7 @@ const CollegeDetailPage = async ({ params }: PageProps) => {
145142
146143 const universityData = universityDetailResult . data ;
147144
148- const convertedKoreanName =
149- universityData . term !== process . env . NEXT_PUBLIC_CURRENT_TERM
150- ? `${ universityData . koreanName } (${ universityData . term } )`
151- : universityData . koreanName ;
145+ const convertedKoreanName = universityData . koreanName ;
152146
153147 const baseUrl = process . env . NEXT_PUBLIC_WEB_URL || "https://solid-connection.com" ;
154148 const pageUrl = `${ baseUrl } /university/${ homeUniversity } /${ collegeId } ` ;
Original file line number Diff line number Diff line change @@ -13,10 +13,7 @@ type UniversityCardProps = {
1313} ;
1414
1515const UniversityCard = ( { university, showCapacity = true , linkPrefix = "/university" } : UniversityCardProps ) => {
16- const convertedKoreanName =
17- university . term !== process . env . NEXT_PUBLIC_CURRENT_TERM
18- ? `${ university . koreanName } (${ university . term } )`
19- : university . koreanName ;
16+ const convertedKoreanName = university . koreanName ;
2017
2118 const mappedHomeUniversitySlug = getHomeUniversitySlugByName ( university . homeUniversityName ) ;
2219 const hasExplicitPrefix = linkPrefix !== "/university" ;
You can’t perform that action at this time.
0 commit comments