Async OperationsAwait anything your config depends on – a remote value, a database, a computed default.Core Concepts
Zero Runtime CostExpensive work happens once during the build, not on every request.Build-Time vs Runtime
Type-Safe Global StateReturn state from a script and import it from #nuxt-prepare, fully inferred.Pass State to Nuxt
A Build That Fails on Bad InputA script that returns ok: false stops the build, so bad input never reaches production.See Example