File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { usePathname } from "next/navigation";
44
55export default function Banner ( ) {
66 const pathname = usePathname ( ) ;
7- const isCommercial = pathname . startsWith ( "/authzed/" ) ;
7+ const isCommercial = pathname ? .startsWith ( "/authzed/" ) ;
88
99 return isCommercial ? (
1010 < a href = "https://authzed.com/zanzibar?utm_source=docs" >
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { usePathname } from "next/navigation";
88
99export function TocCTA ( ) {
1010 const pathname = usePathname ( ) ;
11- const isCommercial = pathname . startsWith ( "/authzed/" ) ;
11+ const isCommercial = pathname ? .startsWith ( "/authzed/" ) ;
1212
1313 return isCommercial ? (
1414 < div className = "flex flex-wrap w-full nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111] nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800 contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400" >
Original file line number Diff line number Diff line change @@ -40,10 +40,6 @@ const withNextra = nextra({
4040
4141export default withNextra ( {
4242 basePath : process . env . NEXT_PUBLIC_BASE_DIR ?? undefined ,
43- // NOTE: when you're using the `content` dir approach with nextra,
44- // you need this setting to make it so that static HTML is generated
45- // during the build step. This is also what enables pagefind to work.
46- output : "export" ,
4743 assetPrefix :
4844 process . env . VERCEL_ENV === "production"
4945 ? "https://docs-authzed.vercel.app/docs"
You can’t perform that action at this time.
0 commit comments