Skip to content

Commit ac43e08

Browse files
authored
Allow public access to explore page in Next.js template (#404)
1 parent 49f34f3 commit ac43e08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/create-hypergraph/template-nextjs/Components

apps/create-hypergraph/template-nextjs/Components/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function Layout({ children }: Readonly<{ children: React.ReactNode }>) {
2323
const { redirectToConnect, logout } = useHypergraphApp();
2424

2525
useLayoutEffect(() => {
26-
if (pathname.startsWith('/login') || pathname.startsWith('/authenticate-success') || pathname === '/') {
26+
if (pathname.startsWith('/login') || pathname.startsWith('/authenticate-success') || pathname === '/' || pathname === '/explore-public-knowledge') {
2727
return;
2828
}
2929

0 commit comments

Comments
 (0)