Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

letstri
Copy link
Contributor

@letstri letstri commented Jun 11, 2024

🔗 Linked issue

resolves #27548
resolves #27555

📚 Description

I've added a # to fix the link.

Copy link

stackblitz bot commented Jun 11, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@danielroe danielroe changed the title fix(nuxt): link error when accessing private env fix(nuxt): remove backticks around runtimeConfig warning log Jun 12, 2024
@danielroe danielroe merged commit 803100e into nuxt:main Jun 12, 2024
58 of 59 checks passed
This was referenced Jun 12, 2024
@@ -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.`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think format was supposed to be passed to consola for proper formatting

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think consola should have several formats to avoid this bug

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think consola is enabled in the browser console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Runtime config warning (typo error link) Wrong link in the devtools when accessing private env
3 participants