registry
ScriptRegistry
Global registry scripts that should be loaded.
See the Script Registry for more details.
defaultScriptOptions
NuxtUseScriptOptions
{ trigger: 'onNuxtReady' }
Default options for scripts. See the useScript documentation for more details.
globals
(NuxtUseScriptInput | [NuxtUseScriptInput, NuxtUseScriptOptions])[]
[]
Global scripts that should be loaded on all pages. This is a configuration for the useScript composable.
See the Globals documentation for more details.
enabled
boolean
true
Disables the Nuxt Scripts module.
debug
boolean
false
Enable to see debug logs.
assets
object
{ prefix: '/_scripts/', strategy: 'public' }
Controls the way scripts are bundled to be served by Nuxt.
See the Bundling documentation for more details.
assets.fallbackOnSrcOnBundleFail
boolean
false
Fallback to the remote src URL when bundle
fails when enabled. By default, the bundling process stops if the third-party script can't be downloaded.
assets.fetchOptions
object
{ retry: 3, retryDelay: 2000, timeout: 15_000 }
Options to pass to the fetch function when downloading scripts.