diff --git a/e2e/tests/ui-driven/install-dependencies.sh b/e2e/tests/ui-driven/install-dependencies.sh index be6e84f598..b40ecb4a71 100755 --- a/e2e/tests/ui-driven/install-dependencies.sh +++ b/e2e/tests/ui-driven/install-dependencies.sh @@ -5,7 +5,7 @@ cd $(dirname "$0") source ../../../.env -(cd ../../../editor.planx.uk && pnpm install --frozen-lockfile && REACT_APP_ENV=test pnpm build) +(cd ../../../editor.planx.uk && pnpm install --frozen-lockfile && VITE_APP_ENV=test pnpm build) if [ -z "${CI}" ]; then echo "Please make sure you have Chrome installed on this machine." diff --git a/editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx b/editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx index 743757538c..e930a0e8a1 100644 --- a/editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx +++ b/editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx @@ -79,7 +79,9 @@ function MapAndLabelComponent(props: Props) { teamSettings?.boundaryBBox && JSON.stringify(teamSettings?.boundaryBBox) } - osProxyEndpoint={`${process.env.REACT_APP_API_URL}/proxy/ordnance-survey`} + osProxyEndpoint={`${ + import.meta.env.VITE_APP_API_URL + }/proxy/ordnance-survey`} osCopyright={`© Crown copyright and database rights ${new Date().getFullYear()} OS (0)100024857`} collapseAttributions={window.innerWidth < 500 ? true : undefined} /> diff --git a/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx b/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx index 2291556cbc..f362cba5b2 100644 --- a/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx +++ b/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx @@ -61,7 +61,9 @@ export const MapFieldInput: React.FC> = (props) => { maxZoom={23} latitude={Number(passport?.data?._address?.latitude)} longitude={Number(passport?.data?._address?.longitude)} - osProxyEndpoint={`${process.env.REACT_APP_API_URL}/proxy/ordnance-survey`} + osProxyEndpoint={`${ + import.meta.env.VITE_APP_API_URL + }/proxy/ordnance-survey`} osCopyright={`Basemap subject to Crown copyright and database rights ${new Date().getFullYear()} OS (0)100024857`} clipGeojsonData={ teamSettings?.boundaryBBox && diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx index 2f9ae2b08a..59dc50e2ae 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx @@ -260,7 +260,7 @@ const ServiceSettings: React.FC = () => { const message = `${emoji[status]} *${teamSlug}/${flowSlug}* is now ${status} (@Silvia)`; return axios.post( - `${process.env.REACT_APP_API_URL}/send-slack-notification`, + `${import.meta.env.VITE_APP_API_URL}/send-slack-notification`, { message: message, },