Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

what is global-config? #60

Open
BennyHoang opened this issue Feb 14, 2022 · 1 comment
Open

what is global-config? #60

BennyHoang opened this issue Feb 14, 2022 · 1 comment

Comments

@BennyHoang
Copy link

Hi!
I am new to sanity and just wondering what reference the global-config in the groq query is? Is this the name of the site configuration document?

@LinnJS
Copy link

LinnJS commented Aug 16, 2022

@BennyHoang Hey benny,

The global config does a couple of different things but the big ones are 1) global navigation and 2) global assets and metadata

Anything that is being used by the entire sites NextSEO is in that object for reusability then each page can add on top of that global data. It also has the unfurl assets and Icon/Logo for the entire sire I mostly use this for the header/footer.

Then going back to global navigation your header and footer config are also in there so the site knows what routes to show in header/footer.

This config is mostly passed to the Layout component that creates the AppShell for the site.

If you have anymore follow up questions feel free to shoot them my way with a @linnjs tag

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

No branches or pull requests

2 participants