(target, p, receiver)
| 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 | } |
no test coverage detected