From 13cf19489a604c7f156b759c0446f8ba903bc235 Mon Sep 17 00:00:00 2001 From: jdwjdwjdw Date: Wed, 17 Apr 2024 14:20:19 -0700 Subject: [PATCH] i18n fixup --- next.config.js | 4 ---- pages/_document.tsx | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 pages/_document.tsx diff --git a/next.config.js b/next.config.js index fd01a9a..805bab6 100644 --- a/next.config.js +++ b/next.config.js @@ -3,10 +3,6 @@ const { withContentlayer } = require('next-contentlayer'); /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, - i18n: { - locales: ['en'], - defaultLocale: 'en', - }, }; module.exports = withContentlayer(nextConfig); diff --git a/pages/_document.tsx b/pages/_document.tsx new file mode 100644 index 0000000..7ad0bb4 --- /dev/null +++ b/pages/_document.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Document, { + Html, + Head, + Main, + NextScript, +} from 'next/document'; + +class MyDocument extends Document { + render() { + return ( + + + +
+ + + + ); + } +} + +export default MyDocument; \ No newline at end of file