Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added apps/web/public/images/univs/chungang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion apps/web/src/constants/university.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const REGIONS_KO = ["유럽권", "미주권", "아시아권", "중국권"
export const HOME_UNIVERSITY_SLUG_MAP: Record<HomeUniversitySlug, HomeUniversity> = {
inha: HomeUniversity.INHA,
kyunghee: HomeUniversity.KYUNGHEE,
chungang: HomeUniversity.CHUNGANG,
};

/**
Expand All @@ -26,6 +27,7 @@ export const HOME_UNIVERSITY_SLUG_MAP: Record<HomeUniversitySlug, HomeUniversity
export const HOME_UNIVERSITY_TO_SLUG_MAP: Record<HomeUniversity, HomeUniversitySlug> = {
[HomeUniversity.INHA]: "inha",
[HomeUniversity.KYUNGHEE]: "kyunghee",
[HomeUniversity.CHUNGANG]: "chungang",
};

/**
Expand Down Expand Up @@ -65,6 +67,18 @@ export const HOME_UNIVERSITY_LIST: HomeUniversityInfo[] = [
description: "경희대학교 교환학생 프로그램",
color: "#8C1515",
},
{
homeUniversityId: 3,
name: HomeUniversity.CHUNGANG,
slug: "chungang",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Route the Chungang slug to the university zone

When a user selects the new 중앙대 option and follows either “더보기” or “학교 검색하기,” the generated URL starts with /university/chungang, but the reviewed apps/web/next.config.mjs still limits the catalog rewrites to (inha|kyunghee) at lines 24 and 114–119, and apps/web has no local catalog route to handle this path. Consequently, these links and the newly emitted Chungang sitemap URLs return 404 unless a separate configuration change is deployed first; add chungang to the rewrite and legacy-redirect pattern before exposing it through this shared list.

AGENTS.md reference: AGENTS.md:L99-L99

Useful? React with 👍 / 👎.

shortName: "중앙대",
// TODO: 중앙대 실제 지원 가능 대학 수 확인 필요.
// 이 목록에 없을 때 적용되던 DEFAULT_MAX_CHOICE_COUNT 와 같은 값이라 현재 동작은 그대로다.
maxChoiceCount: DEFAULT_MAX_CHOICE_COUNT,
logoUrl: "/images/univs/chungang.png",
description: "중앙대학교 교환학생 프로그램",
color: "#006DB4",
},
];

/**
Expand Down Expand Up @@ -114,7 +128,7 @@ export const getHomeUniversitySlugByName = (value: string | null | undefined): H
/**
* 유효한 홈 대학교 슬러그 목록
*/
export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee"];
export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee", "chungang"];

export const COUNTRIES_KO = [
// 2024-2 기준
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/types/university.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ export type RegionKo = "유럽권" | "미주권" | "아시아권" | "중국권";
export enum HomeUniversityName {
INHA = "인하대학교",
KYUNGHEE = "경희대학교",
CHUNGANG = "중앙대학교",
}

export { HomeUniversityName as HomeUniversity };

export type HomeUniversitySlug = "inha" | "kyunghee";
export type HomeUniversitySlug = "inha" | "kyunghee" | "chungang";

export interface RegionOption {
value: string;
Expand Down
Loading