Skip to content

Commit

Permalink
fix: sitemap url for production deployments (#5599)
Browse files Browse the repository at this point in the history
styfle authored Aug 2, 2023
1 parent 9c60cfd commit c36666c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions next.constants.mjs
Original file line number Diff line number Diff line change
@@ -32,9 +32,11 @@ export const ENABLE_STATIC_EXPORT =
*
* @see https://vercel.com/docs/concepts/projects/environment-variables/system-environment-variables#framework-environment-variables
*/
export const BASE_URL = process.env.NEXT_PUBLIC_VERCEL_URL
export const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL
? process.env.NEXT_PUBLIC_BASE_URL
: process.env.NEXT_PUBLIC_VERCEL_URL
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
: process.env.NEXT_PUBLIC_BASE_URL || 'https://nodejs.org';
: 'https://nodejs.org';

/**
* This is used for any place that requires the Node.js distribution URL (which by default is nodejs.org/dist)

0 comments on commit c36666c

Please sign in to comment.