mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
🐛 fix: Fix ssr
This commit is contained in:
parent
4a1995f995
commit
40b9e93a48
3 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npm run type-check
|
||||
npx --no-install lint-staged
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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']),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue