unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.91k stars 497 forks source link

routeRules stopped working in 2.9 when deployed to Azure #2342

Closed tobiasdiez closed 2 months ago

tobiasdiez commented 5 months ago

Environment

Reproduction

https://github.com/JabRef/JabRefOnline/pull/2370 not really a "minimal reproduction" but since there are issues with the deployment of the nitro example in https://github.com/unjs/nitro-deploys, I'm not sure where I should start

Describe the bug

After the upgrade from nitro 2.8.1 to 2.9.0 (or 2.9.6) all routes defined in nuxt.config as well as all pages except for the index are resulting in 404 errors when deployed to azure functions. Strangely, also the server routes are working correctly (in my case /api). I cannot reproduce it locally with the azure cli, and running the dev server locally also works. No errors are logged in the azure portal. Hence, I have no idea how to investigate this issue further.

If you have any idea what change could have triggered this, can try it again with a patched version.

Additional context

Perhaps https://github.com/nuxt/nuxt/issues/26567 is related

Logs

No response

tobiasdiez commented 2 months ago

Seems to be working now.