Skip to content

Commit

Permalink
i18n fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw committed Apr 17, 2024
1 parent 3372893 commit 13cf194
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
4 changes: 0 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
23 changes: 23 additions & 0 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';
import Document, {
Html,
Head,
Main,
NextScript,
} from 'next/document';

class MyDocument extends Document {
render() {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}

export default MyDocument;

0 comments on commit 13cf194

Please sign in to comment.