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
An equivalent of e.g. Nuxt's <DevOnly> component for Nitro would be interesting and could be the .dev.ts suffix. All routes having a .dev suffix in the file would only be loaded during development and would not be present in production.
Benefits would be automatic removal on production and being able to define e.g. debug endpoints in your dev environment 🙌
PR is welcome to implement this feature. We might also introduce a new dev flag to the event handler object type and allow programmatic registration of them.
Activity
pi0 commentedon Oct 23, 2023
PR is welcome to implement this feature. We might also introduce a new
devflag to the event handler object type and allow programmatic registration of them.TheAlexLichter commentedon Apr 24, 2024
Resolved via #2272 (nitro nightly at the moment)