Skip to content

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

Merged
danielroe merged 3 commits intonuxt:mainfrom
letstri:fix/wrong-link-env-warning
Jun 12, 2024
Merged

fix(nuxt): remove backticks around runtimeConfig warning log#27549
danielroe merged 3 commits intonuxt:mainfrom
letstri:fix/wrong-link-env-warning

Conversation

@letstri
Copy link
Copy Markdown
Contributor

@letstri letstri commented Jun 11, 2024

🔗 Linked issue

resolves #27548
resolves #27555

📚 Description

I've added a # to fix the link.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

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
This was referenced Jun 12, 2024
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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