File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { composterLoginArtv2 } from "../constants/asciiArts.js";
1111const __filename = fileURLToPath ( import . meta. url ) ;
1212const __dirname = dirname ( __filename ) ;
1313
14- const BASE_URL = `${ process . env . BASE_URL } /auth` ;
14+ const BASE_URL = `${ process . env . BASE_URL || "https://composter.vercel.app/api" } /auth` ;
1515
1616export async function login ( ) {
1717 console . log ( chalk . bold . blue ( composterLoginArtv2 ) ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { handleSessionError } from "./errorHandlers/sessionErrorHandler.js";
44import { handleFetchError } from "./errorHandlers/fetchErrorHandler.js" ;
55import { log } from "./log.js" ;
66
7- const BASE_URL = process . env . BASE_URL ;
7+ const BASE_URL = process . env . BASE_URL || "https://composter.vercel.app/api" ;
88
99export async function apiRequest ( path , options = { } ) {
1010
You can’t perform that action at this time.
0 commit comments