Skip to content

Commit 9764129

Browse files
authored
Update baseURL to use dynamic VERCEL_BRANCH_URL
Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent ea189d9 commit 9764129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc-kit.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
// Important Configuration
1212
project: 'Node.js',
1313
title: '{project} Learn',
14-
baseURL: 'https://nodejs.org/learn',
14+
baseURL: `https://${process.env.VERCEL_BRANCH_URL ?? 'nodejs.org'}/learn`,
1515
pageURL: '{baseURL}{path}.html',
1616
editURL: 'https://github.com/nodejs/learn/edit/main/pages{path}.md',
1717
useAbsoluteURLs: true,

0 commit comments

Comments
 (0)