Skip to content

Commit

Permalink
Merge pull request #576 from companieshouse/IDVA5-1672-Fix-CSS-Not-Re…
Browse files Browse the repository at this point in the history
…ndering

Updating CDN for stylesheets
  • Loading branch information
ttingle-ch authored Jan 9, 2025
2 parents 0177811 + d0bf198 commit 15d9f57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
APPLICATION_NAME,
CDN_URL_CSS,
CDN_URL_JS,
CDN_HOST,
ANY_PROTOCOL_CDN_HOST,
CHS_URL,
PIWIK_URL,
PIWIK_SITE_ID,
Expand Down Expand Up @@ -46,7 +46,7 @@ app.set("views", path.join(__dirname, "views"));
app.set("view engine", "njk");
nunjucksEnv.addGlobal("cdnUrlCss", CDN_URL_CSS);
nunjucksEnv.addGlobal("cdnUrlJs", CDN_URL_JS);
nunjucksEnv.addGlobal("cdnHost", CDN_HOST);
nunjucksEnv.addGlobal("cdnHost", ANY_PROTOCOL_CDN_HOST);
nunjucksEnv.addGlobal("chsUrl", CHS_URL);
nunjucksEnv.addGlobal("chsMonitorGuiUrl", CHS_MONITOR_GUI_URL);
nunjucksEnv.addGlobal("SERVICE_NAME", APPLICATION_NAME);
Expand Down
2 changes: 2 additions & 0 deletions src/utils/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const CDN_URL_JS = getEnvironmentValue("CDN_URL_JS", "false");

export const CDN_HOST = getEnvironmentValue("CDN_HOST", "false");

export const ANY_PROTOCOL_CDN_HOST = getEnvironmentValue("ANY_PROTOCOL_CDN_HOST", "false");

export const CHS_MONITOR_GUI_URL = getEnvironmentValue("CHS_MONITOR_GUI_URL");

// API Keys and Secrets
Expand Down

0 comments on commit 15d9f57

Please sign in to comment.