2019-08-09 13:38:51 +02:00
|
|
|
// This file can be replaced during build by using the `fileReplacements` array.
|
|
|
|
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
|
|
// The list of file replacements can be found in `angular.json`.
|
2020-04-14 11:28:33 +02:00
|
|
|
let baseURL = 'http://localhost:8000/';
|
|
|
|
const baseURLProd = 'https://framadate.org/';
|
|
|
|
const baseURLDemo = 'https://framadate-api.cipherbliss.com/';
|
2020-01-21 12:04:14 +01:00
|
|
|
const apiVersion = 1;
|
2020-01-23 14:23:07 +01:00
|
|
|
const testOnDemo = 0;
|
2020-01-21 12:04:14 +01:00
|
|
|
if (testOnDemo) {
|
2020-04-21 10:50:26 +02:00
|
|
|
baseURL = baseURLDemo;
|
2020-01-21 12:04:14 +01:00
|
|
|
}
|
2019-08-09 13:38:51 +02:00
|
|
|
export const environment = {
|
2020-04-21 10:50:26 +02:00
|
|
|
production: false,
|
|
|
|
baseHref: baseURL,
|
|
|
|
baseApiHref: baseURL + 'api/v' + apiVersion,
|
2019-08-09 13:38:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* For easier debugging in development mode, you can import the following file
|
|
|
|
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
|
|
|
*
|
|
|
|
* This import should be commented out in production mode because it will have a negative impact
|
|
|
|
* on performance if an error is thrown.
|
|
|
|
*/
|
|
|
|
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|