🐛 fix(config): NoStore

This commit is contained in:
web@ppanel
2024-12-08 16:09:27 +07:00
parent a1e4999a2f
commit 2cc18cf559
6 changed files with 29 additions and 37 deletions
+3 -1
View File
@@ -8,13 +8,15 @@ import { Metadata, Viewport } from 'next';
import { NextIntlClientProvider } from 'next-intl';
import { getLocale, getMessages } from 'next-intl/server';
import { PublicEnvScript } from 'next-runtime-env';
import { unstable_noStore as noStore } from 'next/cache';
import { cookies } from 'next/headers';
import NextTopLoader from 'nextjs-toploader';
import React from 'react';
export async function generateMetadata(): Promise<Metadata> {
let site: API.SiteConfig | undefined;
noStore();
let site: API.SiteConfig | undefined;
await getGlobalConfig({ skipErrorHandler: true })
.then((res) => {
const config = res.data.data;