From 13dc83d244864c62aea9673b7b6002d4ce979dcf Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Tue, 5 Dec 2023 12:37:25 +0000 Subject: [PATCH] PR feedback --- bin/print-ci-env.cjs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/bin/print-ci-env.cjs b/bin/print-ci-env.cjs index 94e59419f..2f33d7755 100644 --- a/bin/print-ci-env.cjs +++ b/bin/print-ci-env.cjs @@ -2,23 +2,22 @@ const ref = process.env.GITHUB_REF; let stage; -if (ref === "refs/heads/main") { - stage = "STAGING"; -} else if (ref.startsWith("refs/tags/v")) { - stage = "PRODUCTION"; +if (ref === 'refs/heads/main') { + stage = 'STAGING'; +} else if (ref.startsWith('refs/tags/v')) { + stage = 'PRODUCTION'; } else { - stage = "REVIEW"; + stage = 'REVIEW'; } process.env.STAGE = stage; // STAGE must be defined before this is imported -const { bucketName, bucketPrefix } = require("../deployment.cjs"); -const baseUrl = !bucketPrefix ? "/" : `/${bucketPrefix}/`; +const { bucketName, bucketPrefix } = require('../deployment.cjs'); +const baseUrl = !bucketPrefix ? '/' : `/${bucketPrefix}/`; const fullUrl = `https://${bucketName}${baseUrl}`; console.log(`STAGE=${stage}`); console.log(`VITE_STAGE=${stage}`); console.log(`BASE_URL=${baseUrl}`); -console.log(`E2E_BASE_URL=${baseUrl}`); -// This is used for og:url and similar. Not quite right for review domain but we don't really care. +// This can be used for og:url and similar. Not quite right for review domain but we don't really care. console.log(`VITE_FULL_URL=${fullUrl}`);