🐛 fix: Fix ssr

This commit is contained in:
canisminor1990
2023-07-16 23:58:28 +08:00
parent 40b9e93a48
commit c733936a02
3 changed files with 3 additions and 3 deletions

View File

@@ -38,6 +38,6 @@ const Chat = memo(() => {
});
export default Chat;
export const getStaticProps = async (context: any) => ({
export const getServerSideProps = async (context: any) => ({
props: await serverSideTranslations(context.locale),
});

View File

@@ -1 +1 @@
export { default, getStaticProps } from './[id]/index.page';
export { default, getServerSideProps } from './[id]/index.page';

View File

@@ -31,7 +31,7 @@ const SettingLayout = memo(() => {
);
});
export const getStaticProps = async (context: any) => ({
export const getServerSideProps = async (context: any) => ({
props: await serverSideTranslations(context.locale, ['common', 'setting']),
});