Skip to content

Commit 76b4929

Browse files
authored
fix: 대학 정보 표기의 CURRENT_TERM env 의존 제거 (#456)
* fix: 대학 홈 로고 카드 배경을 흰색으로 고정 * fix: 대학 학기 표시의 CURRENT_TERM env 의존 제거
1 parent 736afdd commit 76b4929

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

.env.guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
### `.env`
3636
- **용도**: 모든 환경의 공통 기본값
3737
- **커밋**: ✅ Git에 포함
38-
- **내용**: 공통 설정 (CURRENT_TERM, IMAGE_URL 등)
38+
- **내용**: 공통 설정 (IMAGE_URL 등)
3939

4040
### `.env.development`
4141
- **용도**: 로컬 개발 환경 (`npm run dev`)

apps/web/.env

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
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

apps/web/src/app/university/[homeUniversity]/[id]/page.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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}`;

apps/web/src/components/ui/UniverSityCard/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ type UniversityCardProps = {
1313
};
1414

1515
const 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";

0 commit comments

Comments
 (0)