Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/void/src/cli/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,17 @@ function writeConfig(config: Config): void {
}

export function isStagingMode(): boolean {
return readConfig().staging === true || !!process.env.STAGING;
const config = readConfig();
if (config.staging === false) return false;
return true;
Comment thread
Brooooooklyn marked this conversation as resolved.
Comment thread
Brooooooklyn marked this conversation as resolved.
}

export function setStagingMode(on: boolean): void {
const config = readConfig();
if (on) {
config.staging = true;
} else {
delete config.staging;
} else {
config.staging = false;
}
writeConfig(config);
}
Expand Down
Loading