nitro
nitro copied to clipboard
Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
Normally each nitro build is against one specific deployment preset and consistent with the development environment. Sometimes it is desired that the same codebase be splitted across different deployments. For...
### Environment Nitro: 2.2.2 Node: 18.14.0 ### Reproduction [Stackblitz Repro](https://stackblitz.com/edit/github-vkrzub?file=routes/index.ts) ### Describe the bug Hi i am trying to define a `CachedEventHandler` and want to cache a `proxyRequest`. ```js export...
### Describe the feature To ensure all deploy providers behave uniformly, we should export a `defaultNodeVersion` utility to be used within the presets as a fallback. See [this comment](https://github.com/unjs/nitro/pull/2654#discussion_r1746677267) for...
### Environment ------------------------------ - Operating System: Linux - Node Version: v20.12.2 - Nuxt Version: 3.13.1 - CLI Version: 3.13.1 - Nitro Version: 2.9.7 - Package Manager: [email protected] - Builder: -...
### Describe the feature I'm not sure if this is intentional, but it causes issues on some servers without strict order definitions for compressed and uncompressed files. Currently, when enabling...
### Environment Node v20.15.0 ### Reproduction https://github.com/offizium-berndstorath/nitro-repro https://stackblitz.com/~/github.com/offizium-berndstorath/nitro-repro?file=server/utils/test.ts ### Describe the bug If you return a Date from a api route the type doesn't get converted to string. But only...
### Describe the feature I have deployed Nuxt to AWS Amplify and the runtime seems to be running on node 18. In the source code, 18.x is specified as follows,...
Background: some thoughts [here](https://github.com/unjs/nitro/discussions/2690#discussioncomment-10430213). Nitro modules should be explicitly imported and configured in the user config. Pretty much how a rollup or vite plugin can be configured. - avoid auto...
### 🔗 Linked issue #1974 ### ❓ Type of change - [x] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [ ] 🐞 Bug fix (a non-breaking...
### Environment nitropack-nightly@3.0.0-beta-28665895.e727afda-nitro-nightly-mirror ### Reproduction 1. Create the dir `modules` 2. Add the file `log/index.ts` and `log/runtime/routes/log.ts` 3. Inspect the return of https://github.com/unjs/nitro/blob/d20ffcbd16fc4003b774445e1a01e698c2bb078a/src/core/scan.ts#L44 ### Describe the bug You'll see that...