diff options
author | crupest <crupest@outlook.com> | 2020-05-30 23:16:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-05-30 23:16:49 +0800 |
commit | 2ffc07756ca7d50533e90fdac37d62a6c33a8a00 (patch) | |
tree | 88d142853805b6b5a0230164f19ae35e425ea559 /Timeline/ClientApp/src/config.ts | |
parent | 68ca8b0976efe90c0c40bcae69f0825671b98bad (diff) | |
download | timeline-2ffc07756ca7d50533e90fdac37d62a6c33a8a00.tar.gz timeline-2ffc07756ca7d50533e90fdac37d62a6c33a8a00.tar.bz2 timeline-2ffc07756ca7d50533e90fdac37d62a6c33a8a00.zip |
Just get everything works!
Diffstat (limited to 'Timeline/ClientApp/src/config.ts')
-rw-r--r-- | Timeline/ClientApp/src/config.ts | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Timeline/ClientApp/src/config.ts b/Timeline/ClientApp/src/config.ts index 2f088a10..d06c3332 100644 --- a/Timeline/ClientApp/src/config.ts +++ b/Timeline/ClientApp/src/config.ts @@ -1,12 +1 @@ -export const apiBaseUrl = (function () {
- if (process.env.TIMELINE_USEDEVAPI) {
- console.log('process.env.TIMELINE_USEDEVAPI is set, use dev api server!');
- return 'http://localhost:5000';
- } else if (process.env.NODE_ENV === 'production') {
- console.log('Production mode!');
- return 'https://api.crupest.xyz';
- } else {
- console.log('Development mode!');
- return 'http://localhost:5000';
- }
-})();
+export const apiBaseUrl = '/api';
|