Production build failed, but website deployed anyways

13:45:50.952      Request failed with status code 502
13:45:50.970    
13:45:50.970    
13:45:50.970      AxiosError: Request failed with status code 502
13:45:50.970      
13:45:50.970      - settle.js:19 settle
13:45:50.970        [repo]/[gatsby-source-strapi]/[axios]/lib/core/settle.js:19:12
13:45:50.970      
13:45:50.971      - http.js:556 IncomingMessage.handleStreamEnd
13:45:50.971        [repo]/[gatsby-source-strapi]/[axios]/lib/adapters/http.js:556:11
13:45:50.971      
13:45:50.971      - node:events:525 IncomingMessage.emit
13:45:50.971        node:events:525:35
13:45:50.971      
13:45:50.971      - readable:1359 endReadableNT
13:45:50.971        node:internal/streams/readable:1359:12
13:45:50.971      
13:45:50.972      - task_queues:82 processTicksAndRejections
13:45:50.972        node:internal/process/task_queues:82:21
13:45:50.972      
13:45:50.972    
13:45:50.972    not finished source and transform nodes - 14.271s
13:45:52.422    Finished
13:45:52.422    Note: No functions dir at /functions found. Skipping.
13:45:52.423    Validating asset output directory
13:45:53.195    Deploying your site to Cloudflare's global network...
13:45:55.423    Uploading... (11/11)
13:45:55.424    ✨ Success! Uploaded 0 files (11 already uploaded) (0.26 sec)
13:45:55.424    
13:45:56.040    ✨ Upload complete!
13:45:58.150    Success: Assets published!
13:45:59.432    Success: Your site was deployed!


I have also tried explicitly returning error code 1 on build failure. But the site deploys anyways. My company website deploys a blank page whenever this happens.
Was this page helpful?