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
The current implementation checks for an environment specific suffix only when the related method is also specified. This results in the following outcomes:
routes/foo.get.dev.ts correctly doesn't get bundled into production.
routes/bar.dev.ts erroneously gets bundled into production.
if we check event.context.params for routes/[id].dev.ts we get { 'id.dev': 'value' } instead of { 'id': 'value' }.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Node
20.18.0
Nitro
2.10.2
Reproduction
Create the following files:
routes/foo.get.dev.ts
routes/bar.dev.ts
routes/[id].dev.ts
Describe the bug
The current implementation checks for an environment specific suffix only when the related method is also specified. This results in the following outcomes:
routes/foo.get.dev.ts
correctly doesn't get bundled into production.routes/bar.dev.ts
erroneously gets bundled into production.event.context.params
forroutes/[id].dev.ts
we get{ 'id.dev': 'value' }
instead of{ 'id': 'value' }
.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: