From 0479f68f43d63a6060df13a3baacc0a1b0b8f468 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Fri, 7 Mar 2025 15:41:40 +0100 Subject: [PATCH] test: ensure we don't prerender API responses for og image in test fixture --- tests/fixtures/wasm-src/src/app/og-node/route.js | 2 ++ tests/fixtures/wasm-src/src/app/og/route.js | 2 ++ tests/fixtures/wasm/app/og-node/route.js | 2 ++ tests/fixtures/wasm/app/og/route.js | 2 ++ 4 files changed, 8 insertions(+) diff --git a/tests/fixtures/wasm-src/src/app/og-node/route.js b/tests/fixtures/wasm-src/src/app/og-node/route.js index 39638abb96..6338e7e61b 100644 --- a/tests/fixtures/wasm-src/src/app/og-node/route.js +++ b/tests/fixtures/wasm-src/src/app/og-node/route.js @@ -6,3 +6,5 @@ export async function GET() { height: 630, }) } + +export const dynamic = 'force-dynamic' diff --git a/tests/fixtures/wasm-src/src/app/og/route.js b/tests/fixtures/wasm-src/src/app/og/route.js index 9304ca61e7..575c5a01ae 100644 --- a/tests/fixtures/wasm-src/src/app/og/route.js +++ b/tests/fixtures/wasm-src/src/app/og/route.js @@ -8,3 +8,5 @@ export async function GET() { } export const runtime = 'edge' + +export const dynamic = 'force-dynamic' diff --git a/tests/fixtures/wasm/app/og-node/route.js b/tests/fixtures/wasm/app/og-node/route.js index 39638abb96..6338e7e61b 100644 --- a/tests/fixtures/wasm/app/og-node/route.js +++ b/tests/fixtures/wasm/app/og-node/route.js @@ -6,3 +6,5 @@ export async function GET() { height: 630, }) } + +export const dynamic = 'force-dynamic' diff --git a/tests/fixtures/wasm/app/og/route.js b/tests/fixtures/wasm/app/og/route.js index 9304ca61e7..575c5a01ae 100644 --- a/tests/fixtures/wasm/app/og/route.js +++ b/tests/fixtures/wasm/app/og/route.js @@ -8,3 +8,5 @@ export async function GET() { } export const runtime = 'edge' + +export const dynamic = 'force-dynamic'