feat(poc): cahnge runtime for test

This commit is contained in:
Björn Meyer
2023-07-14 13:04:52 +02:00
parent 09ecbe89e3
commit 179b92d5d8
10 changed files with 23 additions and 27 deletions

View File

@@ -4,15 +4,11 @@ import Prose from 'components/prose';
import { getPage } from 'lib/shopware';
import { notFound } from 'next/navigation';
export const runtime = 'edge';
export const runtime = 'nodejs';
export const revalidate = 43200; // 12 hours in seconds
export async function generateMetadata({
params
}: {
params: { cms: string };
}): Promise<Metadata> {
export async function generateMetadata({ params }: { params: { cms: string } }): Promise<Metadata> {
const page = await getPage(params.cms);
if (!page) return notFound();