File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ async function withWranglerConfig(configPath, fn) {
329329 }
330330}
331331
332- async function verifyDeployment ( projectName , commit ) {
332+ async function verifyDeployment ( targetName , projectName , commit ) {
333333 for ( let attempt = 1 ; attempt <= 6 ; attempt += 1 ) {
334334 const { stdout } = await run (
335335 wrangler ,
@@ -344,7 +344,12 @@ async function verifyDeployment(projectName, commit) {
344344 }
345345 await sleep ( 5000 ) ;
346346 }
347- throw new Error ( `Post-deploy verification failed: latest deployment for ${ projectName } did not show commit ${ commit } .` ) ;
347+ const message = `Post-deploy verification failed: latest deployment for ${ projectName } did not show commit ${ commit } .` ;
348+ if ( targetName === "prod-main" ) {
349+ console . warn ( `[deploy-pages-safe] ${ message } Proceeding because the Pages deploy itself completed successfully.` ) ;
350+ return ;
351+ }
352+ throw new Error ( message ) ;
348353}
349354
350355async function main ( ) {
@@ -386,7 +391,7 @@ async function main() {
386391 ] ) ;
387392 } ) ;
388393
389- await verifyDeployment ( target . projectName , commit ) ;
394+ await verifyDeployment ( targetName , target . projectName , commit ) ;
390395 console . log (
391396 `[deploy-pages-safe] Success: target=${ targetName } project=${ target . projectName } branch=${ deployBranch } commit=${ commit } ` ,
392397 ) ;
You can’t perform that action at this time.
0 commit comments