mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
🐛 fix: Fix ssr
This commit is contained in:
@@ -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']),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user