Skip to content

Commit

Permalink
chore: add Gloucester subdomain to editor envs (#3048)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Apr 23, 2024
1 parent 19d23ec commit 1576837
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions editor.planx.uk/src/airbrake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ export const logger = getErrorLogger();
*/
function getEnvForAllowedHosts(host: string) {
switch (host) {
case "planningservices.medway.gov.uk":
case "planningservices.barnet.gov.uk":
case "planningservices.buckinghamshire.gov.uk":
case "planningservices.camden.gov.uk":
case "planningservices.doncaster.gov.uk":
case "planningservices.gateshead.gov.uk":
case "planningservices.gloucester.gov.uk":
case "planningservices.lambeth.gov.uk":
case "planningservices.medway.gov.uk":
case "planningservices.southwark.gov.uk":
case "planningservices.buckinghamshire.gov.uk":
case "planningservices.camden.gov.uk":
case "planningservices.stalbans.gov.uk":
case "planningservices.barnet.gov.uk":
case "planningservices.tewkesbury.gov.uk":
case "planningservices.westberks.gov.uk":
case "planningservices.gateshead.gov.uk":
case "editor.planx.uk":
return "production";

Expand Down
11 changes: 6 additions & 5 deletions editor.planx.uk/src/routes/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,18 @@ export const setPath = (flowData: Store.flow, req: NaviRequest) => {
// So I've hard-coded these domain names until a better solution comes along.
//
const PREVIEW_ONLY_DOMAINS = [
"planningservices.barnet.gov.uk",
"planningservices.buckinghamshire.gov.uk",
"planningservices.lambeth.gov.uk",
"planningservices.southwark.gov.uk",
"planningservices.camden.gov.uk",
"planningservices.doncaster.gov.uk",
"planningservices.gateshead.gov.uk",
"planningservices.gloucester.gov.uk",
"planningservices.lambeth.gov.uk",
"planningservices.medway.gov.uk",
"planningservices.camden.gov.uk",
"planningservices.southwark.gov.uk",
"planningservices.stalbans.gov.uk",
"planningservices.barnet.gov.uk",
"planningservices.tewkesbury.gov.uk",
"planningservices.westberks.gov.uk",
"planningservices.gateshead.gov.uk",
// XXX: un-comment the next line to test custom domains locally
// "localhost",
];
Expand Down

0 comments on commit 1576837

Please sign in to comment.