Typed ImportsReturn data from a script and import it from #nuxt-prepare in Vue and Nitro, typed with its literal values.Prepare Data
Zero Runtime CostExpensive work happens once during the build, not on every request.Scripts Run at Build Time
Config Above app.config.tsA script's appConfig wins over app.config.ts, its runtimeConfig over nuxt.config.ts.Runtime & App Config
A Build That Fails on Bad InputA script that throws stops the build, so bad input never reaches production.A Thrown Error Stops the Build