forked from tykayn/funky-framadate-front
up env for demo bliss
This commit is contained in:
parent
fc0db05f23
commit
558f29843b
@ -1,9 +1,9 @@
|
|||||||
const backendApiUrlsInDev = {
|
export const backendApiUrlsInDev = {
|
||||||
local: 'http://tktest.lan/api/v1',
|
local: 'http://tktest.lan/api/v1',
|
||||||
remote: 'http://tktest.lan/api/v1',
|
remote: 'http://tktest.lan/api/v1',
|
||||||
// remote: 'https://framadate-api.cipherbliss.com/api/v1',
|
// remote: 'https://framadate-api.cipherbliss.com/api/v1',
|
||||||
};
|
};
|
||||||
const apiV1 = {
|
export const apiV1 = {
|
||||||
baseHref: 'http://tktest.lan/api/v1',
|
baseHref: 'http://tktest.lan/api/v1',
|
||||||
// baseHref: 'https://framadate-api.cipherbliss.com/api/v1',
|
// baseHref: 'https://framadate-api.cipherbliss.com/api/v1',
|
||||||
api_new_poll: '/poll/',
|
api_new_poll: '/poll/',
|
||||||
|
@ -1,27 +1,23 @@
|
|||||||
import { endpoints } from './endpoints';
|
import { endpoints } from './endpoints';
|
||||||
import { poll_conf } from './poll_conf';
|
import { poll_conf } from './poll_conf';
|
||||||
|
|
||||||
|
const prodBaseHref = 'https://framadate-api.cipherbliss.com';
|
||||||
const backendApiUrlsInDev = {
|
const backendApiUrlsInDev = {
|
||||||
local: '/api/v1',
|
local: '/api/v1',
|
||||||
remote: 'https://framadate-api.cipherbliss.com/api/v1',
|
remote: `${prodBaseHref}/api/v1`,
|
||||||
};
|
|
||||||
const apiV1 = {
|
|
||||||
baseHref: 'https://framadate-api.cipherbliss.com/api/v1',
|
|
||||||
api_new_poll: '/poll/',
|
|
||||||
api_get_poll: '/poll/{id}',
|
|
||||||
'api_test-mail-poll': '/api/v1/poll/mail/test-mail-poll/{emailChoice}',
|
|
||||||
'app.swagger': '/api/doc.json',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
endpoints.baseHref = `${prodBaseHref}/api/v1`;
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
frontDomain: 'https://framadate-api.cipherbliss.com',
|
frontDomain: prodBaseHref,
|
||||||
production: true,
|
production: true,
|
||||||
display_routes: true,
|
display_routes: true,
|
||||||
showDemoWarning: true,
|
showDemoWarning: true,
|
||||||
autofill: true,
|
autofill: true,
|
||||||
autoSendNewPoll: false,
|
autoSendNewPoll: false,
|
||||||
interval_days_default: 7,
|
interval_days_default: 7,
|
||||||
appTitle: 'FramaDate Funky',
|
appTitle: 'FramaDate Funky Démo',
|
||||||
appVersion: '0.6.0',
|
appVersion: '0.6.0',
|
||||||
appLogo: 'assets/img/logo.png',
|
appLogo: 'assets/img/logo.png',
|
||||||
api: endpoints,
|
api: endpoints,
|
||||||
|
@ -2,9 +2,11 @@
|
|||||||
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
||||||
// The list of file replacements can be found in `angular.json`.
|
// The list of file replacements can be found in `angular.json`.
|
||||||
|
|
||||||
import { endpoints } from './endpoints';
|
import { apiV1, endpoints } from './endpoints';
|
||||||
import { poll_conf } from './poll_conf';
|
import { poll_conf } from './poll_conf';
|
||||||
|
|
||||||
|
endpoints.baseHref = apiV1.baseHref;
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
frontDomain: 'http://127.0.0.1:4200',
|
frontDomain: 'http://127.0.0.1:4200',
|
||||||
production: false,
|
production: false,
|
||||||
@ -13,7 +15,7 @@ export const environment = {
|
|||||||
showDemoWarning: false,
|
showDemoWarning: false,
|
||||||
autoSendNewPoll: false,
|
autoSendNewPoll: false,
|
||||||
interval_days_default: 7,
|
interval_days_default: 7,
|
||||||
appTitle: 'FDFunky',
|
appTitle: 'funky',
|
||||||
appVersion: '0.6.0',
|
appVersion: '0.6.0',
|
||||||
appLogo: 'assets/img/logo.png',
|
appLogo: 'assets/img/logo.png',
|
||||||
api: endpoints,
|
api: endpoints,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user