Skip to content

Commit

Permalink
Revert "fix: control all hslfi content using ENV variable"
Browse files Browse the repository at this point in the history
This reverts commit ad7fa33.
  • Loading branch information
vesameskanen committed Sep 17, 2024
1 parent ad7fa33 commit f5cbfe3
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions app/configurations/config.hsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,10 @@ const HSLTimetables = require('./timetableConfigUtils').default.HSL;
const HSLParkAndRideUtils = require('../util/ParkAndRideUtils').default.HSL;

const rootLink = process.env.ROOTLINK || 'https://test.hslfi.hsldev.com';

const BANNER_URL = process.env.CONTENT_DOMAIN
? `${process.env.CONTENT_DOMAIN}/api/v1/banners?site=JourneyPlanner`
: process.env.BANNER_URL ||
'https://cms-test.hslfi.hsldev.com/api/v1/banners?site=JourneyPlanner';
const SUGGESTION_URL = process.env.CONTENT_DOMAIN
? `${process.env.CONTENT_DOMAIN}/api/v1/search/suggestions`
: 'https://content.hsl.fi/api/v1/search/suggestions'; // old url

const BANNER_URL =
process.env.BANNER_URL ||
'https://cms-test.hslfi.hsldev.com/api/v1/banners?site=JourneyPlanner';
// 'https://content.hsl.fi/api/v1/banners?site=JourneyPlanner';
const localStorageEmitter =
process.env.USE_EMITTER && rootLink + '/local-storage-emitter';

Expand Down Expand Up @@ -59,7 +54,7 @@ export default {
FONTCOUNTER: 'https://cloud.typography.com/6364294/7432412/css/fonts.css',
ROOTLINK: rootLink,
BANNERS: BANNER_URL,
HSL_FI_SUGGESTIONS: SUGGESTION_URL,
HSL_FI_SUGGESTIONS: 'https://content.hsl.fi/api/v1/search/suggestions',
EMBEDDED_SEARCH_GENERATION: '/reittiopas-elementti',
EMISSIONS_INFO: {
fi: 'https://www.hsl.fi/hsl/sahkobussit/ymparisto-lukuina',
Expand Down

0 comments on commit f5cbfe3

Please sign in to comment.