Spaces:
Runtime error
Runtime error
File size: 638 Bytes
13095e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import { DocumentProps, Head, Html, Main, NextScript } from 'next/document';
import i18nextConfig from '../next-i18next.config';
type Props = DocumentProps & {
// add custom document props
};
export default function Document(props: Props) {
const currentLocale =
props.__NEXT_DATA__.locale ?? i18nextConfig.i18n.defaultLocale;
return (
<Html lang={currentLocale}>
<Head>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Chatbot UI"></meta>
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
|