fixing chart 🐛
This commit is contained in:
parent
cbafcb1642
commit
ba54f8ffd6
@ -168,15 +168,15 @@ export default function Home() {
|
||||
)
|
||||
}
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async (ctx) => {
|
||||
const { ['@smartAuth-token']: token } = parseCookies(ctx)
|
||||
// export const getServerSideProps: GetServerSideProps = async (ctx) => {
|
||||
// const { ['@smartAuth-token']: token } = parseCookies(ctx)
|
||||
|
||||
if (token) {
|
||||
return {
|
||||
redirect: {
|
||||
destination: '/dashboard',
|
||||
permanent: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (token) {
|
||||
// return {
|
||||
// redirect: {
|
||||
// destination: '/dashboard',
|
||||
// permanent: false
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user