From 1576837846890b15edbd2c8b773f260c1ae26957 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Tue, 23 Apr 2024 16:32:53 +0100 Subject: [PATCH] chore: add Gloucester subdomain to editor envs (#3048) --- editor.planx.uk/src/airbrake.ts | 11 ++++++----- editor.planx.uk/src/routes/utils.ts | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/editor.planx.uk/src/airbrake.ts b/editor.planx.uk/src/airbrake.ts index 2889a3c943..9d8e284042 100644 --- a/editor.planx.uk/src/airbrake.ts +++ b/editor.planx.uk/src/airbrake.ts @@ -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"; diff --git a/editor.planx.uk/src/routes/utils.ts b/editor.planx.uk/src/routes/utils.ts index ce0a297406..e293bee05c 100644 --- a/editor.planx.uk/src/routes/utils.ts +++ b/editor.planx.uk/src/routes/utils.ts @@ -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", ];