After upgrading to v0.28.0, noticed that when introduced API routes into a "static" project, this combination triggers the hybrid server and now the HTML coming back for the home page is showing a bunch of 404s because it is being served from index.js instead of the static index.html output. (which actually revealed another bug).
As a note, seems like these shouldn't be returning a 500 though, should be a 404.
Details
However, what is key to note about the difference between this and #1098 is that this project has prerender: true in its greenwood.config.js which means this page should not be serving from index.js. The output index.html is correctly bundled, and that is what should be being served.
In fact, there's no reason for this to even need a bundled index.js in the first place.
Type of Change
Bug
Summary
After upgrading to v0.28.0, noticed that when introduced API routes into a "static" project, this combination triggers the hybrid server and now the HTML coming back for the home page is showing a bunch of 404s because it is being served from index.js instead of the static index.html output. (which actually revealed another bug).
Details
However, what is key to note about the difference between this and #1098 is that this project has
prerender: true
in its greenwood.config.js which means this page should not be serving from index.js. The output index.html is correctly bundled, and that is what should be being served.In fact, there's no reason for this to even need a bundled index.js in the first place.