fix(nuxt): remove backticks around runtimeConfig warning log (#27549)

This commit is contained in:
Valerii Strilets 2024-06-12 21:51:09 +03:00 committed by GitHub
parent 1321c56483
commit 803100e34e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -568,7 +568,7 @@ function wrappedConfig (runtimeConfig: Record<string, unknown>) {
if (typeof p === 'string' && p !== 'public' && !(p in target) && !p.startsWith('__v') /* vue check for reactivity, e.g. `__v_isRef` */) {
if (!loggedKeys.has(p)) {
loggedKeys.add(p)
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/guide/going-further/runtime-config\` for more information.`)
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/guide/going-further/runtime-config for more information.`)
}
}
return Reflect.get(target, p, receiver)