Internal build error - says to contact Cloudflare Support
Here's the build output from Cloudflare's pages deployment:
The error only happens when a
_routes.json
file is present in the out directory. AFAIK, this is a supported way of using Pages (advanced mode + _routes.json
to skip having env.ASSETS.fetch
in the worker). This error persists even after retrying (previous attempt has the deployment ID 8a1e52ef-257f-4731-a102-c9432d3fd96a
)
Once I removed the _routes.json
, it started working again (deployment eb9d075a-807c-4d2f-92ff-b8a941b8f162
). Is this not a supported use case?2 Replies
What does your routes json look like?
Oh I see, once I added
"exclude": []
, that started working.
New _routes.json
:
But it's not serving static assets as a fallback anymore 😦 Is there any way to get it to serve static assets without invoking the advanced mode worker?