From 5c167a56cbcb1c6a19349aebac84dbe2d43e5fc1 Mon Sep 17 00:00:00 2001 From: KATT Date: Fri, 20 Oct 2023 13:01:37 +0200 Subject: [PATCH] fix build --- examples/async/src/app/json-stream-finite/route.ts | 2 ++ examples/async/src/app/sse-finite/route.ts | 2 ++ examples/async/src/app/sse-infinite/route.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/examples/async/src/app/json-stream-finite/route.ts b/examples/async/src/app/json-stream-finite/route.ts index 6104fff..518a833 100644 --- a/examples/async/src/app/json-stream-finite/route.ts +++ b/examples/async/src/app/json-stream-finite/route.ts @@ -19,6 +19,8 @@ function getResponseShape() { }; } +export const dynamic = "force-dynamic"; + export type ResponseShape = ReturnType; export function GET() { diff --git a/examples/async/src/app/sse-finite/route.ts b/examples/async/src/app/sse-finite/route.ts index 67d17f9..3d4ebc6 100644 --- a/examples/async/src/app/sse-finite/route.ts +++ b/examples/async/src/app/sse-finite/route.ts @@ -21,6 +21,8 @@ function getResponseShape() { export type ResponseShape = ReturnType; +export const dynamic = "force-dynamic"; + export function GET() { const res = createSSEResponse(getResponseShape()); diff --git a/examples/async/src/app/sse-infinite/route.ts b/examples/async/src/app/sse-infinite/route.ts index 674cbd8..8e648b9 100644 --- a/examples/async/src/app/sse-infinite/route.ts +++ b/examples/async/src/app/sse-infinite/route.ts @@ -26,6 +26,8 @@ function getResponseShape() { export type ResponseShape = ReturnType; +export const dynamic = "force-dynamic"; + export function GET() { const res = createSSEResponse(getResponseShape());