docs: add edge banners on versions and modules (#19448)

This commit is contained in:
Daniel Roe 2023-03-04 14:34:34 +00:00 committed by GitHub
parent f14b896c35
commit 44d4aba283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,8 @@ description: Use the modules/ directory to automatically register local modules
# Modules Directory
::StabilityEdge
Nuxt scans the `modules/` directory and loads them before starting. It is a good place to place any local modules you develop while building your application.
The auto-registered files patterns are:
@ -46,3 +48,5 @@ export default defineEventHandler(() => {
When starting Nuxt, the `hello` module will be registered and the `/api/hello` route will be available.
:ReadMore{link="/docs/guide/going-further/modules"}
::

View File

@ -70,6 +70,8 @@ const nuxtApp = {
}
```
:StabilityEdge{title="nuxtApp.versions"}
For more details, check out [the source code](https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/nuxt.ts).
## Runtime Context vs. Build Context