mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
🐛 fix: Fix title
This commit is contained in:
@@ -4,7 +4,7 @@ const API_END_PORT_URL = process.env.API_END_PORT_URL || '';
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
i18n: i18nConfig.i18n,
|
||||
//i18n: i18nConfig.i18n,
|
||||
reactStrictMode: true,
|
||||
pageExtensions: ['page.tsx', 'api.ts'],
|
||||
transpilePackages: ['@lobehub/ui', 'antd-style'],
|
||||
|
||||
@@ -2,11 +2,13 @@ import { Analytics } from '@vercel/analytics/react';
|
||||
import { appWithTranslation } from 'next-i18next';
|
||||
import type { AppProps } from 'next/app';
|
||||
|
||||
import i18nConfig from '@/../next-i18next.config';
|
||||
import Layout from '@/layout';
|
||||
|
||||
const App = appWithTranslation(({ Component, pageProps }: AppProps) => (
|
||||
<Component {...pageProps} />
|
||||
));
|
||||
const App = appWithTranslation(
|
||||
({ Component, pageProps }: AppProps) => <Component {...pageProps} />,
|
||||
i18nConfig,
|
||||
);
|
||||
|
||||
export default (props: AppProps) => {
|
||||
return (
|
||||
|
||||
@@ -23,10 +23,12 @@ const Chat = memo(() => {
|
||||
i18n.reloadResources(i18n.resolvedLanguage, ['common']);
|
||||
}, []);
|
||||
|
||||
const pageTitle = title ? `${title} - LobeChat` : 'LobeChat';
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Head>
|
||||
<title>{title ? `${title} - LobeChat` : 'LobeChat'}</title>
|
||||
<title>{pageTitle}</title>
|
||||
</Head>
|
||||
|
||||
<Flexbox flex={1}>
|
||||
|
||||
@@ -12,10 +12,11 @@ import SettingForm from './SettingForm';
|
||||
|
||||
const SettingLayout = memo(() => {
|
||||
const { t } = useTranslation('setting');
|
||||
const pageTitle = `${t('header')} - LobeChat`;
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>{t('header')} - LobeChat</title>
|
||||
<title>{pageTitle}</title>
|
||||
</Head>
|
||||
<Flexbox horizontal width={'100%'}>
|
||||
<Sidebar />
|
||||
|
||||
Reference in New Issue
Block a user