File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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' ) {
You can’t perform that action at this time.
0 commit comments