Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Aug 16, 2022
1 parent 7c11117 commit 1029980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/2.guide/2.features/9.server-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Given the example above, the `/hello` route will be accessible at <http://localh

Nuxt will automatically read in any file in the `~/server/middleware` to create server middleware for your project.

Middleware handlers will run on every request before any other server route to add and check some headers, log requests, or extend the event's request object.
Middleware handlers will run on every request before any other server route to add or check headers, log requests, or extend the event's request object.

::alert{type=warning}
Middleware handlers should not return anything (nor close or respond to the request) and only inspect or extend the request context or throw an error.
Expand Down Expand Up @@ -167,7 +167,7 @@ export default defineEventHandler((event) => {
You can use `nitro` key in `nuxt.config` to directly set [Nitro configuration](https://nitro.unjs.io/guide/config).

::alert{type=warning}
This is an advanced option. Custom config can affect production deployments, as configuration interface might change over time whenever Nitro is upgraded in semver-minor versions of Nuxt.
This is an advanced option. Custom config can affect production deployments, as the configuration interface might change over time when Nitro is upgraded in semver-minor versions of Nuxt.
::

```ts [nuxt.config.ts]
Expand Down

0 comments on commit 1029980

Please sign in to comment.