Skip to content

Commit a669923

Browse files
committed
fix(admin):use specific env var to determine admin URL
1 parent 2819b2d commit a669923

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/reva-api/modules/candidacy-menu/features/getMenuUrlBuilder.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ export const menuUrlBuilder =
22
({ candidacyId }: { candidacyId: string }) =>
33
({ suffix }: { suffix: string }) => {
44
const baseUrl =
5-
process.env.ADMIN_REACT_BASE_URL ||
6-
process.env.BASE_URL ||
7-
"https://vae.gouv.fr";
5+
process.env.ADMIN_REACT_BASE_URL || "https://vae.gouv.fr/admin2";
86

9-
return `${baseUrl}/admin2/candidacies/${candidacyId}/${suffix}`;
7+
return `${baseUrl}/candidacies/${candidacyId}/${suffix}`;
108
};

0 commit comments

Comments
 (0)