MCPcopy
hub / github.com/nuxt/nuxt / get

Function get

packages/nuxt/src/app/nuxt.ts:620–628  ·  view source on GitHub ↗
(target, p, receiver)

Source from the content-addressed store, hash-verified

618 const lastKey = keys.pop()
619 return new Proxy(runtimeConfig, {
620 get (target, p, receiver) {
621 if (typeof p === 'string' && p !== 'public' && !(p in target) && !p.startsWith('__v') /* vue check for reactivity, e.g. `__v_isRef` */) {
622 if (!loggedKeys.has(p)) {
623 loggedKeys.add(p)
624 console.warn(`[nuxt] Could not access \`${p}\`. The only available runtime config keys on the client side are ${keys.join(', ')} and ${lastKey}. See https://nuxt.com/docs/4.x/guide/going-further/runtime-config for more information.`)
625 }
626 }
627 return Reflect.get(target, p, receiver)
628 },
629 })
630}

Callers 10

common.tsFile · 0.50
nitro.tsFile · 0.50
$resolveFunction · 0.50
experimental.tsFile · 0.50
postcss.tsFile · 0.50
webpack.tsFile · 0.50
esbuild.tsFile · 0.50
vite.tsFile · 0.50
app.tsFile · 0.50
build.tsFile · 0.50

Calls 1

getMethod · 0.80

Tested by

no test coverage detected