Pages deployment failed with unfriendly "unknown internal error"

My Astro SSR project works local wrangler but deployment is failing with internal error.
Do anyone knows how to investigate this?

19:51:35.695    :sparkles: Success! Uploaded 33 files (1653 already uploaded) (1.87 sec)
19:51:35.695    
19:51:36.246    :sparkles: Upload complete!
19:51:37.681    Uploading to build output cache
19:51:39.880    Success: Build output uploaded to build cache.
19:51:41.954    Success: Assets published!
19:51:43.514    Error: Failed to publish your Function. Got error: Unknown internal error occurred.
19:51:43.514    Note: Not all logs could be displayed, click "Download log" to view more
Was this page helpful?