diff --git a/next-i18next.config.js b/next-i18next.config.js index 4cbcbd862e01..b7940bcf8f86 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -11,6 +11,8 @@ module.exports = { defaultLocale: i18n.entryLocale, locales: [i18n.entryLocale, ...i18n.outputLocales], }, + localePath: + typeof window === 'undefined' ? require('node:path').resolve('./', i18n.output) : '/locales', react: { useSuspense: false }, reloadOnPrerender: process.env.NODE_ENV === 'development', strictMode: true, diff --git a/src/pages/setting/index.page.tsx b/src/pages/setting/index.page.tsx index f8c220c26fd4..1494fa245d0d 100644 --- a/src/pages/setting/index.page.tsx +++ b/src/pages/setting/index.page.tsx @@ -4,6 +4,8 @@ import Head from 'next/head'; import { memo } from 'react'; import { Flexbox } from 'react-layout-kit'; +import { Sessions } from '@/pages/chat/SessionList'; + import Sidebar from '../Sidebar'; import Header from './Header'; @@ -16,6 +18,7 @@ const SettingLayout = memo(() => { +