Eric Chernuka
Eric Chernuka
CDCloudflare Developers
Created by Eric Chernuka on 4/15/2025 in #pages-help
_routes.json not being leveraged
I have an TanStack Router SPA that is leveraging a _routes.json. The page loads fine, but we're finding that when an asset is missing from under /assets/* it returns the SPA 404 page which then breaks all manner of things due to it return html when the mime types requested are css/js. Am I configuring this incorrectly?
{
"version": 1,
"include": ["/*"],
"exclude": ["/assets/*", "/favicon.ico"]
}
{
"version": 1,
"include": ["/*"],
"exclude": ["/assets/*", "/favicon.ico"]
}
12 replies