import { notFound } from "next/navigation"; import { getRequestConfig } from "next-intl/server"; const locales = ["en", "ko"]; export default getRequestConfig(async ({ locale }) => { if (!locales.includes(locale)) { notFound(); } return { messages: (await import(`@/assets/language/${locale}.json`)).default, }; });