Skip to content

Commit f7a88b4

Browse files
committed
Extra check for missing default homepage
1 parent 378a6c3 commit f7a88b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function Home() {
99
export const getServerSideProps: GetServerSideProps = async () => {
1010
return {
1111
redirect: {
12-
destination: env.DEFAULT_HOMEPAGE,
12+
destination: env.DEFAULT_HOMEPAGE ?? '/home',
1313
permanent: true,
1414
},
1515
};

0 commit comments

Comments
 (0)