From 1fb1ad817d476bcdf3d3666d402fd1cda9c87083 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 30 May 2020 23:16:49 +0800 Subject: Just get everything works! --- Timeline/ClientApp/src/config.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'Timeline/ClientApp/src') 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'; -- cgit v1.2.3