Skip to content

Commit 754af26

Browse files
author
Bubba
committed
fix: PlanExe login branding + prod auth env for v0.0.6
1 parent fd0fd80 commit 754af26

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

cli/scripts/build-binary.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,16 @@ async function main() {
149149
const outputFile = join(binDir, outputFilename)
150150

151151
// Collect all NEXT_PUBLIC_* environment variables
152-
const nextPublicEnvVars = Object.entries(process.env)
152+
// NEXT_PUBLIC_CB_ENVIRONMENT defaults to 'prod' for binary releases unless explicitly overridden
153+
const binaryEnv = {
154+
...process.env,
155+
NEXT_PUBLIC_CB_ENVIRONMENT:
156+
process.env.NEXT_PUBLIC_CB_ENVIRONMENT === 'dev' ||
157+
process.env.NEXT_PUBLIC_CB_ENVIRONMENT === 'test'
158+
? process.env.NEXT_PUBLIC_CB_ENVIRONMENT
159+
: 'prod',
160+
}
161+
const nextPublicEnvVars = Object.entries(binaryEnv)
153162
.filter(([key]) => key.startsWith('NEXT_PUBLIC_'))
154163
.map(([key, value]) => [`process.env.${key}`, `"${value ?? ''}"`])
155164

cli/src/login/plain-login.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function runPlainLogin(): Promise<void> {
2121
const fingerprintId = generateFingerprintId()
2222

2323
console.log()
24-
console.log(bold(IS_FREEBUFF ? 'Freebuff Login' : 'Codebuff Login'))
24+
console.log(bold(IS_FREEBUFF ? 'Freebuff Login' : 'PlanExe Login'))
2525
console.log()
2626
console.log('Generating login URL...')
2727

@@ -72,7 +72,7 @@ export async function runPlainLogin(): Promise<void> {
7272
console.log()
7373
console.log(green(`✓ Logged in as ${user.name} (${user.email})`))
7474
console.log()
75-
const cliName = IS_FREEBUFF ? 'freebuff' : 'codebuff'
75+
const cliName = IS_FREEBUFF ? 'freebuff' : 'planexe'
7676
console.log('You can now run ' + cyan(cliName) + ' to start.')
7777
process.exit(0)
7878
} else if (result.status === 'timeout') {

0 commit comments

Comments
 (0)