Skip to content

Commit a0cb010

Browse files
committed
lint fixes
1 parent e854796 commit a0cb010

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

components/banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { usePathname } from "next/navigation";
44

55
export 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">

components/cta.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { usePathname } from "next/navigation";
88

99
export 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">

next.config.mjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ const withNextra = nextra({
4040

4141
export 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"

0 commit comments

Comments
 (0)