The deployment failed due to an internal error. Retry deployment to restart the build process.

Deploying a Sveltekit project from Github & all went well until the end where it threw this error at me... which I don't even have a routes.json file within my project so no idea how to sort it out. Added the logs to show it all went well until the end. Anyone know what I should do next?

Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in routes.json is over the 100 character limit. Refer to https://cfl.re/3FsE4aF.
Cloudflare Docs
Functions utilize file-based routing. Your /functions directory structure determines the designated routes that your Functions will run on. You can
Solution
You will need to report this to SvelteKit, they're the ones generating the
_routes.json
and seem to be making an invalid one.
Was this page helpful?