fix: login ip check (#2848)

This commit is contained in:
Archer 2024-09-30 18:24:03 +08:00 committed by GitHub
parent df328b2a73
commit d4b99ddcab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -231,7 +231,7 @@ function RedirectDrawer({
export async function getServerSideProps(context: any) { export async function getServerSideProps(context: any) {
return { return {
props: { props: {
ChineseRedirectUrl: process.env.CHINESE_IP_REDIRECT_URL, ChineseRedirectUrl: process.env.CHINESE_IP_REDIRECT_URL ?? '',
...(await serviceSideProps(context, ['app', 'user', 'login'])) ...(await serviceSideProps(context, ['app', 'user', 'login']))
} }
}; };