Getting 500 Internal server error after adding some changes,but build got succeeded

For Workes & Pages, what is the name of the domain?

https://develop.cartoon-dp.pages.dev/

What is the error number?

500

What is the error message?

500 Internal server error

What is the issue or error you’re encountering

my test server was working fine. After adding some code changes the test server throws 500 Internal Server Error, but the build are getting succeeded. Even if i retry deploy the old build again, it still throws same error. When merged to prod, also had same issue but i’m able to rollback