This document will help you upgrading from a Version into another.
- BREAKING CHANGE: useConfig() param signature has changed. The language parameter when accessing the config has been removed and the full Astro context object is now required.
before (in 1.x):
const config = await useConfig(Astro.currentLocale)
now (in 2.x):
const config = await useConfig(Astro);
The config is typically requested in the Layout of your Astro Project. See the src/layouts
folder