@@ -14,17 +14,17 @@ export const GITBOOK_URL =
14
14
export const GITBOOK_ASSETS_URL =
15
15
process . env . NODE_ENV === 'development'
16
16
? 'http://localhost:3000'
17
- : ( process . env . GITBOOK_ASSETS_PREFIX ?? GITBOOK_URL ) ;
17
+ : process . env . GITBOOK_ASSETS_PREFIX || GITBOOK_URL ;
18
18
19
19
/**
20
20
* GitBook app URL.
21
21
*/
22
- export const GITBOOK_APP_URL = process . env . NEXT_PUBLIC_GITBOOK_APP_URL ?? 'https://app.gitbook.com' ;
22
+ export const GITBOOK_APP_URL = process . env . NEXT_PUBLIC_GITBOOK_APP_URL || 'https://app.gitbook.com' ;
23
23
24
24
/**
25
25
* Default GitBook API URL endpoint.
26
26
*/
27
- export const GITBOOK_API_URL = process . env . GITBOOK_API_URL ?? 'https://api.gitbook.com' ;
27
+ export const GITBOOK_API_URL = process . env . GITBOOK_API_URL || 'https://api.gitbook.com' ;
28
28
29
29
/**
30
30
* Default GitBook API token.
@@ -35,7 +35,7 @@ export const GITBOOK_API_TOKEN = process.env.GITBOOK_API_TOKEN ?? null;
35
35
/**
36
36
* User agent to use for API requests.
37
37
*/
38
- export const GITBOOK_USER_AGENT = process . env . GITBOOK_USER_AGENT ?? 'GitBook-Open/2.0.0' ;
38
+ export const GITBOOK_USER_AGENT = process . env . GITBOOK_USER_AGENT || 'GitBook-Open/2.0.0' ;
39
39
40
40
/**
41
41
* Whether to disable tracking of events into site insights.
@@ -49,7 +49,7 @@ export const GITBOOK_DISABLE_TRACKING = Boolean(
49
49
* Hostname serving the integrations.
50
50
*/
51
51
export const GITBOOK_INTEGRATIONS_HOST =
52
- process . env . GITBOOK_INTEGRATIONS_HOST ?? 'integrations.gitbook.com' ;
52
+ process . env . GITBOOK_INTEGRATIONS_HOST || 'integrations.gitbook.com' ;
53
53
54
54
/**
55
55
* Endpoint to use for resizing images.
0 commit comments