diff --git a/src/pages/board/index.tsx b/src/pages/board/index.tsx index 20f25295a..6a283e919 100644 --- a/src/pages/board/index.tsx +++ b/src/pages/board/index.tsx @@ -45,7 +45,7 @@ export const getServerSideProps: GetServerSideProps = a ); const config = await getFrontendConfig(boardName); - if (!config.settings.access.allowGuests && !session?.user) { + if (!config?.settings?.access?.allowGuests && !session?.user) { return { notFound: true, props: { diff --git a/tsconfig.json b/tsconfig.json index 4fb9c134d..ddd387b7f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -38,7 +38,6 @@ "node_modules" ], "ts-node": { - "esm": true, "compilerOptions": { "module": "nodenext", },