Skip to content

Commit

Permalink
🐛 fix: Fix ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jul 16, 2023
1 parent 4a1995f commit 40b9e93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run type-check
npx --no-install lint-staged
2 changes: 1 addition & 1 deletion src/pages/chat/[id]/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ const Chat = memo(() => {
});
export default Chat;

export const getServerSideProps = async (context: any) => ({
export const getStaticProps = async (context: any) => ({
props: await serverSideTranslations(context.locale),
});
2 changes: 1 addition & 1 deletion src/pages/setting/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const SettingLayout = memo(() => {
);
});

export const getServerSideProps = async (context: any) => ({
export const getStaticProps = async (context: any) => ({
props: await serverSideTranslations(context.locale, ['common', 'setting']),
});

Expand Down

0 comments on commit 40b9e93

Please sign in to comment.