Skip to content

Commit

Permalink
fix(src): 🚑 Hydration error in mantine during SSR/SSG
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Sep 29, 2023
1 parent d6a5b3e commit 990fb06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const nextConfig = {
images: {
domains: ['cdn.discordapp.com', 'i.imgur.com', 'cdn.buildtheearth.net'],
},
// compiler: {
// styledComponents: true,
// },
i18n: {
defaultLocale: 'en',
locales: ['en', 'de', 'es', 'fr', 'ru', 'nl'],
Expand Down
1 change: 0 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function MyApp({ Component, pageProps }: AppProps) {
defaultValue: '',
});

// TODO: Font
return (
<SessionProvider session={pageProps.session}>
<DefaultSeo {...defaultSeo} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Head, Html, Main, NextScript } from 'next/document';
import { ColorSchemeScript } from '@mantine/core';
import { createGetInitialProps } from '@mantine/next';

const getInitialProps = createGetInitialProps();
export const getInitialProps = createGetInitialProps();

export default function Document() {
// static getInitialProps = getInitialProps;
Expand Down

0 comments on commit 990fb06

Please sign in to comment.