funky-framadate-front/src/environments/environment.ts

26 lines
963 B
TypeScript

// 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`.
let baseURL = 'http://localhost:8000/';
const baseURLProd = 'https://framadate.org/';
const baseURLDemo = 'https://framadate-api.cipherbliss.com/';
const apiVersion = 1;
const testOnDemo = 0;
if (testOnDemo) {
baseURL = baseURLDemo;
}
export const environment = {
production: false,
baseHref: baseURL,
baseApiHref: baseURL + 'api/v' + apiVersion,
};
/*
* 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.