File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ constants.stage = {
44 AUTH_URL : "https://stage-api.lambdatestinternal.com/storybook/auth" ,
55 RENDER_API_URL : "https://stage-api.lambdatestinternal.com/storybook/render" ,
66 BUILD_STATUS_URL : "https://stage-api.lambdatestinternal.com/storybook/status" ,
7- BASE_URL : "https://stage-api.lambdatestinternal.com"
7+ BASE_URL : "https://stage-api.lambdatestinternal.com" ,
8+ SB_BUILD_VALIDATE_PATH : "/storybook/validate"
89} ;
910constants . prod = {
1011 AUTH_URL : "https://api.lambdatest.com/storybook/auth" ,
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ async function validateStorybookDir(dir) {
6363
6464async function validateLatestBuild ( options ) {
6565 let commit = await getLastCommit ( ) ;
66- return axios . get ( new URL ( '/storybook/validate' , constants [ options . env ] . BASE_URL ) . href , {
66+ return axios . get ( new URL ( constants [ options . env ] . SB_BUILD_VALIDATE_PATH , constants [ options . env ] . BASE_URL ) . href , {
6767 headers : {
6868 projectToken : process . env . PROJECT_TOKEN
6969 } ,
@@ -80,7 +80,7 @@ async function validateLatestBuild(options) {
8080 } )
8181 . catch ( function ( error ) {
8282 // TODO: Add retries
83- console . log ( '[smartui] Error: Cannot connect with SmartUI platform.' )
83+ console . log ( '[smartui] Error: ' , error . message ) ;
8484 process . exit ( 1 ) ;
8585 } ) ;
8686}
You can’t perform that action at this time.
0 commit comments