@nuxt/docs-nightly 4.3.1-29492224.d85555ce → 4.3.1-29494674.a33ba7a7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -301,6 +301,10 @@ function addPrerenderRoutes (routes: string | string[]): void
301
301
 
302
302
  Add imports to the server. It makes your imports available in Nitro without the need to import them manually.
303
303
 
304
+ ::warning
305
+ If you want to provide a utility that works in both server and client contexts and is usable in the [`shared/`](/docs/4.x/directory-structure/shared) directory, the function must be imported from the same source file for both [`addImports`](/docs/4.x/api/kit/autoimports#addimports) and `addServerImports` and should have identical signature. That source file should not import anything context-specific (i.e., Nitro context, Nuxt app context) or else it might cause errors during type-checking.
306
+ ::
307
+
304
308
  ### Usage
305
309
 
306
310
  ```ts twoslash
@@ -24,7 +24,11 @@ Watch Vue School video about Auto-imports Nuxt Kit utilities.
24
24
 
25
25
  ## `addImports`
26
26
 
27
- Add imports to the Nuxt application. It makes your imports available in the Nuxt application without the need to import them manually.
27
+ Add imports to the Nuxt application. It makes your imports available in the Nuxt app context without the need to import them manually.
28
+
29
+ ::tip
30
+ To add imports for the Nitro server context, refer to the [`addServerImports`](/docs/4.x/api/kit/nitro#addserverimports) function.
31
+ ::
28
32
 
29
33
  ### Usage
30
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "4.3.1-29492224.d85555ce",
3
+ "version": "4.3.1-29494674.a33ba7a7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",