-
Notifications
You must be signed in to change notification settings - Fork 178
/
Copy pathsite-baseurls.js
35 lines (31 loc) · 1.05 KB
/
site-baseurls.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const siteUrl = "https://pulsar.apache.org";
const config = {
siteUrl,
javadocUrl: `${siteUrl}/api`,
restApiUrl: `${siteUrl}/admin-rest-api`,
functionsApiUrl: `${siteUrl}/functions-rest-api`,
sourceApiUrl: `${siteUrl}/source-rest-api`,
sinkApiUrl: `${siteUrl}/sink-rest-api`,
packagesApiUrl: `${siteUrl}/packages-rest-api`,
transactionsApiUrl: `${siteUrl}/transactions-rest-api`,
lookupApiUrl: `${siteUrl}/lookup-rest-api`,
githubUrl: "https://github.com/apache/pulsar",
githubSiteUrl: "https://github.com/apache/pulsar-site",
baseUrl: "/",
};
config.restApiBaseUrlMapping = {
default: config.restApiUrl,
functions: config.functionsApiUrl,
source: config.sourceApiUrl,
sink: config.sinkApiUrl,
packages: config.packagesApiUrl,
transactions: config.transactionsApiUrl,
lookup: config.lookupApiUrl
};
// CommonJS export
module.exports = config;
// Also support ES modules
if (typeof exports === 'object' && typeof module !== 'undefined') {
Object.defineProperty(exports, '__esModule', { value: true });
exports.default = config;
}