Skip to content

Commit

Permalink
chore: Updating remaining REACT_APP_* envs to VITE_APP_* (#3562)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Aug 26, 2024
1 parent ebc5fe5 commit 0bc96f5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/ui-driven/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 3 additions & 1 deletion editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export const MapFieldInput: React.FC<Props<MapField>> = (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 &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 0bc96f5

Please sign in to comment.