diff --git a/apps/university-web/public/images/univs/kyunghee.png b/apps/university-web/public/images/univs/kyunghee.png new file mode 100644 index 000000000..810b1d81b Binary files /dev/null and b/apps/university-web/public/images/univs/kyunghee.png differ diff --git a/apps/university-web/src/constants/university.ts b/apps/university-web/src/constants/university.ts index f6c1746a4..77f1945a5 100644 --- a/apps/university-web/src/constants/university.ts +++ b/apps/university-web/src/constants/university.ts @@ -16,8 +16,7 @@ export const REGIONS_KO = ["유럽권", "미주권", "아시아권", "중국권" */ export const HOME_UNIVERSITY_SLUG_MAP: Record = { inha: HomeUniversity.INHA, - incheon: HomeUniversity.INCHEON, - sungshin: HomeUniversity.SUNGSHIN, + kyunghee: HomeUniversity.KYUNGHEE, }; /** @@ -25,8 +24,7 @@ export const HOME_UNIVERSITY_SLUG_MAP: Record = { [HomeUniversity.INHA]: "inha", - [HomeUniversity.INCHEON]: "incheon", - [HomeUniversity.SUNGSHIN]: "sungshin", + [HomeUniversity.KYUNGHEE]: "kyunghee", }; /** @@ -53,22 +51,13 @@ export const HOME_UNIVERSITY_LIST: HomeUniversityInfo[] = [ color: "#004C98", }, { - homeUniversityId: 2, - name: HomeUniversity.INCHEON, - slug: "incheon", - shortName: "인천대", - logoUrl: "/images/univs/incheon.png", - description: "인천대학교 교환학생 프로그램", - color: "#003876", - }, - { - homeUniversityId: 3, - name: HomeUniversity.SUNGSHIN, - slug: "sungshin", - shortName: "성신여대", - logoUrl: "/images/univs/sungshin.jpg", - description: "성신여자대학교 교환학생 프로그램", - color: "#7B1FA2", + homeUniversityId: 4, + name: HomeUniversity.KYUNGHEE, + slug: "kyunghee", + shortName: "경희대", + logoUrl: "/images/univs/kyunghee.png", + description: "경희대학교 교환학생 프로그램", + color: "#8C1515", }, ]; @@ -118,7 +107,7 @@ export const getHomeUniversitySlugByName = (value: string | null | undefined): H /** * 유효한 홈 대학교 슬러그 목록 */ -export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "incheon", "sungshin"]; +export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee"]; export const COUNTRIES_KO = [ // 2024-2 기준 diff --git a/apps/university-web/src/types/university.ts b/apps/university-web/src/types/university.ts index a492c4163..3885d73a9 100644 --- a/apps/university-web/src/types/university.ts +++ b/apps/university-web/src/types/university.ts @@ -2,13 +2,12 @@ export type RegionKo = "유럽권" | "미주권" | "아시아권"; export enum HomeUniversityName { INHA = "인하대학교", - INCHEON = "인천대학교", - SUNGSHIN = "성신여자대학교", + KYUNGHEE = "경희대학교", } export { HomeUniversityName as HomeUniversity }; -export type HomeUniversitySlug = "inha" | "incheon" | "sungshin"; +export type HomeUniversitySlug = "inha" | "kyunghee"; export interface RegionOption { value: string; diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index 35d0bbaac..9f78ec71c 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -21,7 +21,7 @@ const imageRemotePatterns = [ const universityWebDomain = process.env.UNIVERSITY_WEB_DOMAIN?.replace(/\/$/, ""); const isProductionRuntime = process.env.NODE_ENV === "production"; -const universitySlugPattern = "(inha|incheon|sungshin)"; +const universitySlugPattern = "(inha|kyunghee)"; if (isProductionRuntime && !universityWebDomain) { throw new Error("UNIVERSITY_WEB_DOMAIN is required because /university catalog routes are served by university-web."); diff --git a/apps/web/public/images/univs/kyunghee.png b/apps/web/public/images/univs/kyunghee.png new file mode 100644 index 000000000..810b1d81b Binary files /dev/null and b/apps/web/public/images/univs/kyunghee.png differ diff --git a/apps/web/src/constants/university.ts b/apps/web/src/constants/university.ts index f6c1746a4..77f1945a5 100644 --- a/apps/web/src/constants/university.ts +++ b/apps/web/src/constants/university.ts @@ -16,8 +16,7 @@ export const REGIONS_KO = ["유럽권", "미주권", "아시아권", "중국권" */ export const HOME_UNIVERSITY_SLUG_MAP: Record = { inha: HomeUniversity.INHA, - incheon: HomeUniversity.INCHEON, - sungshin: HomeUniversity.SUNGSHIN, + kyunghee: HomeUniversity.KYUNGHEE, }; /** @@ -25,8 +24,7 @@ export const HOME_UNIVERSITY_SLUG_MAP: Record = { [HomeUniversity.INHA]: "inha", - [HomeUniversity.INCHEON]: "incheon", - [HomeUniversity.SUNGSHIN]: "sungshin", + [HomeUniversity.KYUNGHEE]: "kyunghee", }; /** @@ -53,22 +51,13 @@ export const HOME_UNIVERSITY_LIST: HomeUniversityInfo[] = [ color: "#004C98", }, { - homeUniversityId: 2, - name: HomeUniversity.INCHEON, - slug: "incheon", - shortName: "인천대", - logoUrl: "/images/univs/incheon.png", - description: "인천대학교 교환학생 프로그램", - color: "#003876", - }, - { - homeUniversityId: 3, - name: HomeUniversity.SUNGSHIN, - slug: "sungshin", - shortName: "성신여대", - logoUrl: "/images/univs/sungshin.jpg", - description: "성신여자대학교 교환학생 프로그램", - color: "#7B1FA2", + homeUniversityId: 4, + name: HomeUniversity.KYUNGHEE, + slug: "kyunghee", + shortName: "경희대", + logoUrl: "/images/univs/kyunghee.png", + description: "경희대학교 교환학생 프로그램", + color: "#8C1515", }, ]; @@ -118,7 +107,7 @@ export const getHomeUniversitySlugByName = (value: string | null | undefined): H /** * 유효한 홈 대학교 슬러그 목록 */ -export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "incheon", "sungshin"]; +export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee"]; export const COUNTRIES_KO = [ // 2024-2 기준 diff --git a/apps/web/src/types/university.ts b/apps/web/src/types/university.ts index a492c4163..3885d73a9 100644 --- a/apps/web/src/types/university.ts +++ b/apps/web/src/types/university.ts @@ -2,13 +2,12 @@ export type RegionKo = "유럽권" | "미주권" | "아시아권"; export enum HomeUniversityName { INHA = "인하대학교", - INCHEON = "인천대학교", - SUNGSHIN = "성신여자대학교", + KYUNGHEE = "경희대학교", } export { HomeUniversityName as HomeUniversity }; -export type HomeUniversitySlug = "inha" | "incheon" | "sungshin"; +export type HomeUniversitySlug = "inha" | "kyunghee"; export interface RegionOption { value: string;