Skip to content

Commit 48793c5

Browse files
committed
Update docs-page.tsx
1 parent bdc4b28 commit 48793c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/components/geistdocs/docs-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const DocsPage = async ({ slug }: PageProps) => {
4848
editOnGithubUrl = `https://github.com/${owner}/${repo}/edit/main/apps/docs/content/docs/${path}`;
4949
}
5050

51-
const protocol = process.env.VERCEL_URL ? "https" : "http";
51+
const protocol = process.env.NODE_ENV === "production" ? "https" : "http";
5252
const url = new URL(
5353
page.url,
5454
`${protocol}://${process.env.BASE_URL}`

0 commit comments

Comments
 (0)