diff --git a/next.config.js b/next.config.js index 767719f..4ceedf1 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,10 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} - -module.exports = nextConfig +const nextConfig = { + i18n: { + locales: ['en'], // Add other languages if needed + defaultLocale: 'en', + localeDetection: false, // Disable automatic locale detection + }, + } + + module.exports = nextConfig \ No newline at end of file diff --git a/pages/_document.tsx b/pages/_document.tsx new file mode 100644 index 0000000..1fdfd4e --- /dev/null +++ b/pages/_document.tsx @@ -0,0 +1,24 @@ +import Document, { Html, Head, Main, NextScript, DocumentContext } from 'next/document' + +class MyDocument extends Document { + static async getInitialProps(ctx: DocumentContext) { + const initialProps = await Document.getInitialProps(ctx) + return { ...initialProps } + } + + render() { + return ( + +
+ + + + +