Skip to content

Commit df37fa7

Browse files
committed
feat: update baseUrl
1 parent 6fe0dfc commit df37fa7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

apps/docs/src/lib/metadata.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ export function createMetadata(override: Metadata): Metadata {
2121
};
2222
}
2323

24-
export const baseUrl =
25-
process.env.NODE_ENV === 'development' ||
26-
!process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL
27-
? new URL('http://localhost:3000')
28-
: new URL(
29-
`https://${process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL}`,
30-
);
24+
export const baseUrl = !process.env.VERCEL_PROJECT_PRODUCTION_URL
25+
? new URL('http://localhost:3000')
26+
: new URL(`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`);

0 commit comments

Comments
 (0)