nitro
nitro copied to clipboard
Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
Moving from https://github.com/unjs/nitro/discussions/1718 reported by @cosbgn Minimal reproduction: routes/index.ts: ```ts export default defineEventHandler(async (event) => { if (event.method === "POST") { return await readFormData(event) .then((r) => r.get("name")) .catch((e) => e.stack);...
Related to https://github.com/nuxt/nuxt/issues/20882 (and https://github.com/unjs/nitro/issues/1281) In a cluster environment, we might want to run a plugin or logic only in first instance. For this, we need to check if the...
This requirement was discovered from https://github.com/Baroshem/nuxt-security/issues/335 > https://github.com/Baroshem/nuxt-security/blob/main/src/runtime/nitro/plugins/05-cspSsgPresets.ts This module particularly requires to presist CSP headers (using route rules was initial workaround but hacky) so that when site is pre-rendered,...
### Environment Nitro: 2.8.1 Node: 18 ### Reproduction https://stackblitz.com/edit/nuxt-tip-cancel-fetch-request-ysnjhe?file=app.vue,components%2FFetchStream.vue ### Describe the bug Hello Nitro Team, Thanks for the incredible work you're doing with Nuxt and Nitro! I'm currently facing...
### Environment Nitro: 2.8.1 Node: 20.5.0 ### Reproduction Nuxt demo, run `npm run generate` to trigger error: https://stackblitz.com/edit/github-ktqr8f?file=pages%2Findex.vue ### Describe the bug Nitro contains regex for finding links in HTML:...
We had a couple of issues in the past originating from wrongly extracted HTML links. I think we should accept the small cost of a HTML parser to use instead...
### Environment Nitro 2.10.0-28597966.b2831dd5, Node 20 latest ### Reproduction I'll be happy to create repro if it will be needed but let me create this one without repro for now...
### 🔗 Linked issue ### ❓ Type of change - [x] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [ ] 🐞 Bug fix (a non-breaking change...
### Describe the feature As in Nuxt, `strict` should ideally be enabled by default. ### Additional information Overwriting tsconfig works as well so far: ``` // https://nitro.unjs.io/guide/typescript { "extends": "./.nitro/types/tsconfig.json",...
Context: https://github.com/unjs/nitro/issues/766 To fix in: https://github.com/unjs/nitro/blob/main/src/options.ts#L384