Skip to content

Commit

Permalink
fix: disable preprod env for app
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro committed Jan 30, 2024
1 parent 41e4ca4 commit d9cae7a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions api-node/src/controllers/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ router.get(
return;
}

const current_app_buildversion_in_production = 18;
// const current_app_buildversion_in_production = 18;

if (
parseInt(appbuild as string, 10) > current_app_buildversion_in_production
) {
res.status(200).send({
ok: true,
data: {
environment: 'preproduction',
api_host: 'api-node-recosante-preprod.dev.fabrique.social.gouv.fr',
},
});
return;
}
// if (
// parseInt(appbuild as string, 10) > current_app_buildversion_in_production
// ) {
// res.status(200).send({
// ok: true,
// data: {
// environment: 'preproduction',
// api_host: 'api-node-recosante-preprod.dev.fabrique.social.gouv.fr',
// },
// });
// return;
// }
res.status(200).send({
ok: true,
data: {
Expand Down

0 comments on commit d9cae7a

Please sign in to comment.