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
Routing · Cloudflare Pages 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.
Jump to solution
5 Replies
Solution
Walshy
Walshy9mo ago
You will need to report this to SvelteKit, they're the ones generating the _routes.json and seem to be making an invalid one.
Ayla Croft < 麻烦 />
I can do that .. however is there a way around it or a trick so that I can deploy it?
Walshy
Walshy9mo ago
you can modify the routes.json after you build the app, very much a hacky workaround though you'd either have to modify in ci build or commit with edited but make sure to keep up to date on new api routes and such
Ayla Croft < 麻烦 />
Thank you, will report it and give it a shot so .... embarrassingly I had two pngs with hella long file names and by deleting them since they weren't in use it actually worked on the auto deploy after the commit. Problem solved lol. Sorry
Walshy
Walshy9mo ago
ah that'll do it haha
Want results from more Discord servers?
Add your server