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: do not try to access private runtime config on client #55

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

danielroe
Copy link
Contributor

@danielroe danielroe commented Jun 12, 2024

Description

resolves #54
nuxt/nuxt#27555

We now log (in dev mode only) when users try to access private runtime config on the client.

This ensures we don't try to do that in this module.

Linked Issues

Additional context

@harlan-zw
Copy link
Owner

Thank you for the help, much appreciated 🙌

@robmontesinos
Copy link

Getting this warning in dev mode as listed above:
Could not access nuxt-schema-org. The only available runtime config keys on the client side are 'public' and 'app'. See https://nuxt.com/docs/guide/going-further/runtime-config` for more information.`

We are not accessing runtime config in relation to NuxtSEO at all in our project; it seems like NuxtSEO is doing the accessing. Furthermore the LD+JSON object is not being created in the head. Can you possibly provide more information as to how to locate and correct this warning?

FYI: When I use the documents to add settings to nuxt config:

siteConfig: { title: 'Nuxt SEO', description: 'Nuxt SEO is a collection of hand-crafted Nuxt Modules to help you rank higher in search engines.', url: 'https://nuxtseo.com' },

I get the following error:
Object literal may only specify known properties, and 'siteConfig' does not exist in type 'InputConfig<NuxtConfig, ConfigLayerMeta>'.

Any help with this important element would be appreciated.

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