@@ -38,14 +38,14 @@ const config = {
38
38
}
39
39
40
40
// Customize config for specific versions
41
- if ( process . env . VERSION === 'dotcom' ) {
41
+ if ( process . env . DOCS_VERSION === 'dotcom' ) {
42
42
// If Dotcom, skip Enterprise Server and GitHub AE links
43
43
config . linksToSkip . push ( '^.*/enterprise-server@.*$' , '^.*/enterprise/.*$' , '^.*/github-ae@latest.*$' )
44
- } else if ( process . env . VERSION === 'enterprise-server' ) {
44
+ } else if ( process . env . DOCS_VERSION === 'enterprise-server' ) {
45
45
// If Enterprise Server, skip links that are not Enterprise Server links
46
46
config . path = `${ englishRoot } /enterprise-server@${ latest } `
47
47
config . linksToSkip . push ( '^((?!enterprise-server@).)*$' )
48
- } else if ( process . env . VERSION === 'github-ae' ) {
48
+ } else if ( process . env . DOCS_VERSION === 'github-ae' ) {
49
49
// If GitHub AE, skip links that are not GitHub AE links
50
50
config . path = `${ englishRoot } /github-ae@latest`
51
51
config . linksToSkip . push ( '^((?!github-ae@latest).)*$' )
@@ -54,8 +54,8 @@ if (process.env.VERSION === 'dotcom') {
54
54
main ( )
55
55
56
56
async function main ( ) {
57
- process . env . VERSION && allowedVersions . includes ( process . env . VERSION )
58
- ? console . log ( `Checking internal links for version ${ process . env . VERSION } !\n` )
57
+ process . env . DOCS_VERSION && allowedVersions . includes ( process . env . DOCS_VERSION )
58
+ ? console . log ( `Checking internal links for version ${ process . env . DOCS_VERSION } !\n` )
59
59
: console . log ( 'Checking internal links for all versions!\n' )
60
60
61
61
console . time ( 'check' )
0 commit comments