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:Jump to 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.5 Replies
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.I can do that .. however is there a way around it or a trick so that I can deploy it?
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
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
ah that'll do it haha