feat(poc): change runtime for test

This commit is contained in:
Björn Meyer 2023-07-14 13:08:06 +02:00
parent 179b92d5d8
commit 1bfbd903cc
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import OpengraphImage from 'components/opengraph-image';
import { getPage } from 'lib/shopware';
export const runtime = 'nodejs';
export const runtime = 'edge';
export default async function Image({ params }: { params: { page: string } }) {
const page = await getPage(params.page);

View File

@ -1,6 +1,6 @@
import OpengraphImage from 'components/opengraph-image';
export const runtime = 'nodejs';
export const runtime = 'edge';
export default async function Image() {
return await OpengraphImage();

View File

@ -1,7 +1,7 @@
import OpengraphImage from 'components/opengraph-image';
import { getCollection } from 'lib/shopware';
export const runtime = 'nodejs';
export const runtime = 'edge';
export default async function Image({ params }: { params: { collection: string } }) {
const collection = await getCollection(params.collection);