Skip to content

Commit

Permalink
fix(schema): add env handling for pre build schema check
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsJohansen87 committed Jun 12, 2024
1 parent 15f5d88 commit 95906c2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions options_tester.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ const __importDefault = (this && this.__importDefault) || function (mod) {

console.log(
"Checking Lens options for ",
import.meta.env.VITE_TARGET_ENVIRONMENT,
process.env.VITE_TARGET_ENVIRONMENT,
);

let optionsPath = "";
if (import.meta.env.VITE_TARGET_ENVIRONMENT === "production") {
optionsPath = prodOptions;
} else if (import.meta.env.VITE_TARGET_ENVIRONMENT === "staging") {
optionsPath = demoOptions;
if (process.env.VITE_TARGET_ENVIRONMENT === "production") {
optionsPath = "./packages/demo/public/options-ccp-prod.json";
} else if (process.env.VITE_TARGET_ENVIRONMENT === "staging") {
optionsPath = "./packages/demo/public/options-ccp-demo.json";
} else {
optionsPath = devOptions;
optionsPath = "./packages/demo/public/options-dev.json";
}

Object.defineProperty(exports, "__esModule", { value: true });
Expand Down

0 comments on commit 95906c2

Please sign in to comment.