Skip to content

Commit

Permalink
fix: 빌드 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
woochul2 committed May 22, 2022
1 parent c353ec9 commit 73a6eae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import React from 'react';
React.useLayoutEffect = React.useEffect;

export default function Document(props: DocumentProps) {
const { theme } = props.__NEXT_DATA__.props.pageProps.initialState;

const { initialState } = props.__NEXT_DATA__.props.pageProps;
return (
<Html lang="ko">
<Head>
Expand All @@ -16,7 +15,7 @@ export default function Document(props: DocumentProps) {
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css"
/>
</Head>
<body data-theme={theme}>
<body data-theme={initialState?.theme}>
<Main />
<NextScript />
</body>
Expand Down

0 comments on commit 73a6eae

Please sign in to comment.