Update language setting and versions in several packages

This commit includes an update of the language setting in the DocsPage and BlogPage functions in the marketing app to make it more dynamic. Additionally, the package versions of next, @makerkit/data-loader-supabase-nextjs, and various Next packages in the Supabase package have been updated.
This commit is contained in:
giancarlo
2024-04-11 13:55:37 +08:00
parent a69688d601
commit 2c7478abff
19 changed files with 105 additions and 88 deletions

View File

@@ -16,10 +16,11 @@ export const generateMetadata = async () => {
async function DocsPage() {
const client = await createCmsClient();
const { t } = await createI18nServerInstance();
const { t, resolvedLanguage } = await createI18nServerInstance();
const { items } = await client.getContentItems({
collection: 'documentation',
language: resolvedLanguage,
});
// Filter out any docs that have a parentId, as these are children of other docs