Skip to content

Commit ead903e

Browse files
committed
reorder
1 parent f89afbe commit ead903e

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

api/config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Central environment configuration for TPEN-interfaces
2+
// Set ACTIVE_ENV to 'dev' or 'prod' to switch environments.
3+
4+
// Change this line to switch environments
5+
export const ACTIVE_ENV = 'dev' // 'dev' | 'prod'
6+
7+
export const ENVIRONMENTS = {
8+
dev: {
9+
BASEURL: 'https://dev.app.t-pen.org',
10+
servicesURL: 'https://dev.api.t-pen.org',
11+
tinyThingsURL: 'https://dev.tiny.t-pen.org',
12+
RERUMURL: 'https://devstore.rerum.io/v1',
13+
TPEN28URL: 'https://t-pen.org',
14+
TPEN3URL: 'https://three.t-pen.org',
15+
},
16+
prod: {
17+
BASEURL: 'https://app.t-pen.org',
18+
servicesURL: 'https://api.t-pen.org',
19+
tinyThingsURL: 'https://tiny.t-pen.org',
20+
RERUMURL: 'https://store.rerum.io/v1',
21+
TPEN28URL: 'https://t-pen.org',
22+
TPEN3URL: 'https://three.t-pen.org',
23+
}
24+
}
25+
26+
export const CONFIG = {
27+
env: ACTIVE_ENV,
28+
...ENVIRONMENTS[ACTIVE_ENV]
29+
}

0 commit comments

Comments
 (0)