@@ -13,9 +13,10 @@ const pckgJson = require('./package.json');
13
13
// eslint-disable-next-line @typescript-eslint/no-var-requires
14
14
const versionsArchived = require ( './versionsArchived.json' ) ;
15
15
16
- const { PR_NAME , VERSION_NAME } = process . env ;
17
- const prefix = VERSION_NAME || ! PR_NAME ? '' : `/pr/${ PR_NAME } ` ;
18
- const baseUrl = VERSION_NAME ? `/versions/${ VERSION_NAME } /` : `${ prefix } /b2c/` ;
16
+ const { VERSION_NAME , PREFIX } = process . env ;
17
+ const prPrefix = VERSION_NAME || PREFIX ;
18
+ const defaultUrl = PREFIX ? `/${ PREFIX } /b2c/` : '/b2c/' ;
19
+ const baseUrl = VERSION_NAME ? `/versions/${ VERSION_NAME } /` : defaultUrl ;
19
20
20
21
/** @type {import('@docusaurus/types').DocusaurusConfig } */
21
22
module . exports = {
@@ -39,12 +40,12 @@ module.exports = {
39
40
} ,
40
41
items : [
41
42
{
42
- href : `https://plasma.sberdevices.ru${ prefix } /ui/` ,
43
+ href : `https://plasma.sberdevices.ru${ prPrefix } /ui/` ,
43
44
position : 'left' ,
44
45
label : 'UI' ,
45
46
} ,
46
47
{
47
- href : `https://plasma.sberdevices.ru${ prefix } /web/` ,
48
+ href : `https://plasma.sberdevices.ru${ prPrefix } /web/` ,
48
49
position : 'left' ,
49
50
label : 'WEB' ,
50
51
} ,
@@ -80,11 +81,11 @@ module.exports = {
80
81
items : [
81
82
{
82
83
label : 'Plasma UI' ,
83
- to : `https://plasma.sberdevices.ru${ prefix } /ui/` ,
84
+ to : `https://plasma.sberdevices.ru${ prPrefix } /ui/` ,
84
85
} ,
85
86
{
86
87
label : 'Plasma WEB' ,
87
- to : `https://plasma.sberdevices.ru${ prefix } /web/` ,
88
+ to : `https://plasma.sberdevices.ru${ prPrefix } /web/` ,
88
89
} ,
89
90
{
90
91
label : 'Plasma B2C' ,
0 commit comments