opennextjs-netlify: Bug: `appDir` applications can have `dataRoute: null`
When you run next build on https://github.com/redmonkez12/interactive-rating-component/tree/079f65a9b1d84efe2c1032dc01c022b46a7c0fb5, then prerender-manifest.json will contain
"/api/hello": {
"initialHeaders": { "content-type": "text/plain;charset=UTF-8" },
"initialRevalidateSeconds": false,
"srcRoute": "/api/hello",
"dataRoute": null
}
Our runtime currently can’t handle that, and will throw an error here, because dataRoute is null:
To fix that, we should update the Next.js version that this repo is pulling TS types from, and fix all places where the types now fail.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 27 (1 by maintainers)
Yes
Feels like this is a high priority so I’ve added it to the current iteration as an “up next”.
Also facing the same issue
@Fox32, apologies, but I mispoke. This fix didn’t roll out in v. 4.33.0. I’m adding it to the next release.
Upgraded to 4.33.0 today, still hitting the same error: