Skip to content

Commit

Permalink
fix: default cdn address
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Jan 16, 2025
1 parent 1a57487 commit 2aff690
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions app/configurations/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const CONFIG = process.env.CONFIG || 'default';
const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi';
const GEOCODING_BASE_URL =
process.env.GEOCODING_BASE_URL || `${API_URL}/geocoding/v1`;
const MAP_URL =
process.env.MAP_URL || 'https://digitransit-dev-cdn-origin.azureedge.net';
const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi';
const MAP_VERSION = process.env.MAP_VERSION || 'v3';
const POI_MAP_PREFIX = `${MAP_URL}/map/v3/finland`;
const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2/finland/`;
Expand Down
3 changes: 1 addition & 2 deletions app/configurations/config.hsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { BIKEAVL_WITHMAX } from '../util/vehicleRentalUtils';
const CONFIG = 'hsl';
const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi';
const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2/hsl/`;
const MAP_URL =
process.env.MAP_URL || 'https://digitransit-dev-cdn-origin.azureedge.net';
const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi';
const POI_MAP_PREFIX = `${MAP_URL}/map/v3/hsl`;
const APP_DESCRIPTION = 'Helsingin seudun liikenteen Reittiopas.';
const HSLTimetables = require('./timetableConfigUtils').default.HSL;
Expand Down
3 changes: 1 addition & 2 deletions app/configurations/config.kela.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const APP_TITLE = 'Reittiopas';
const APP_DESCRIPTION = 'Digitransit-reittiopas';
const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi';
const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2-kela/kela/`;
const MAP_URL =
process.env.MAP_URL || 'https://digitransit-dev-cdn-origin.azureedge.net';
const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi';
const POI_MAP_PREFIX = `${MAP_URL}/map/v3-kela/kela`;

export default {
Expand Down
2 changes: 1 addition & 1 deletion app/configurations/config.matka.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
CONFIG,
OTPTimeout: process.env.OTP_TIMEOUT || 30000,
URL: {
FONT: 'https://digitransit-prod-cdn-origin.azureedge.net/matka-fonts/roboto/roboto+montserrat.css',
FONT: 'https://cdn.digitransit.fi/matka-fonts/roboto/roboto+montserrat.css',
},

mainMenu: {
Expand Down
3 changes: 1 addition & 2 deletions app/configurations/config.varely.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi';
const APP_TITLE = 'Seutu+ reittiopas';
const APP_DESCRIPTION = 'Varsinais-Suomen ELY-keskuksen reittiopas';
const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2/varely/`;
const MAP_URL =
process.env.MAP_URL || 'https://digitransit-dev-cdn-origin.azureedge.net';
const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi';
const POI_MAP_PREFIX = `${MAP_URL}/map/v3/varely`;

const walttiConfig = require('./config.waltti').default;
Expand Down
3 changes: 1 addition & 2 deletions app/configurations/config.waltti.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi';
const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2/waltti/`;
const MAP_URL =
process.env.MAP_URL || 'https://digitransit-dev-cdn-origin.azureedge.net';
const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi';
const POI_MAP_PREFIX = `${MAP_URL}/map/v3/waltti`;
const APP_DESCRIPTION = 'Digitransit-reittiopas';
const YEAR = 1900 + new Date().getYear();
Expand Down

0 comments on commit 2aff690

Please sign in to comment.