docs: update

This commit is contained in:
Anthony Fu 2025-01-14 20:46:19 +08:00
parent fb27f3f37d
commit b4e28c6170
No known key found for this signature in database
GPG Key ID: 179936958CD423FF
2 changed files with 7 additions and 9 deletions

View File

@ -262,15 +262,6 @@ export default defineUntypedSchema({
* logs hook arguments as well in the browser.
*
* You can also set this to an object to enable specific debug options.
* ```js
* {
* log: true, // Log additional information on terminal
* hooks: true, // Log hooks calls and timings
* nitro: true, // Set nitro debug mode
* browser: true, // Log additional information in browser console
* prod: true // Log additional information in production mode (hydration mismatch, etc.)
* }
* ```
*
* @type {boolean | (typeof import('../src/types/debug').NuxtDebugOptions) | undefined}
*/

View File

@ -1,12 +1,19 @@
import type { NitroOptions } from 'nitro/types'
export interface NuxtDebugOptions {
/** Debug for Nuxt templates */
templates?: boolean
/** Debug for modules setup timings */
modules?: boolean
/** Debug for file watchers */
watchers?: boolean
/** Debug options for Nitro */
nitro?: NitroOptions['debug']
/** Debug for production hydration mismatch */
hydration?: boolean
/** Debug for Vue Router */
router?: boolean
/** Debug for hooks, can be set to `true` or an object with `server` and `client` keys */
hooks?: boolean | {
server?: boolean
client?: boolean