You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given it is just this few lines in a new project, I didn't make a reproduction. If you can't reproduce the issue, I'm happy to make one though.
Be aware that "localhost:3000" is another local running server not nitro itself. My nitro project is running on localhost:3002. Please replace with any http server.
Describe the bug
With v2.9.7 if you add a baseURL like : /app and a routeRule like mentioned above, a request to /api/orders would correctly query http://localhost:3000/orders.
Since 2.10.x this behavious has been changed and instead the following happens:
This might be intentional, but since it is a breaking change in a minor version I decided to report it here.
Additional context
I also opened the following issue in the Nuxt repo given I encountered the problem with Nuxt, but it is certainly nitro related after I tested it more: nuxt/nuxt#29915
Logs
No response
The text was updated successfully, but these errors were encountered:
pi0
changed the title
Breaking default behaviour in routeRules with baseURL updating from Nitro 2.9.7 -> Nitro 2.10.x
proxy route rules in 2.10 dev server force append base URL
Nov 14, 2024
Environment
node v22.11.0
[email protected] (error happens from 2.10.0 onwards)
Reproduction
Install new nitro project with version 2.10.x, add the following to nuxt.config.ts:
baseURL: '/app',
routeRules: {
"/api/": { proxy: "http://localhost:3000/" },
},
Given it is just this few lines in a new project, I didn't make a reproduction. If you can't reproduce the issue, I'm happy to make one though.
Be aware that "localhost:3000" is another local running server not nitro itself. My nitro project is running on localhost:3002. Please replace with any http server.
Describe the bug
With v2.9.7 if you add a baseURL like : /app and a routeRule like mentioned above, a request to /api/orders would correctly query http://localhost:3000/orders.
Since 2.10.x this behavious has been changed and instead the following happens:
This might be intentional, but since it is a breaking change in a minor version I decided to report it here.
Additional context
I also opened the following issue in the Nuxt repo given I encountered the problem with Nuxt, but it is certainly nitro related after I tested it more: nuxt/nuxt#29915
Logs
No response
The text was updated successfully, but these errors were encountered: