Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/api/chat/[chatId]/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NextRequest, NextResponse } from 'next/server';
export const dynamic = 'force-dynamic';

const MOCK_STREAM_EVENTS = [
{ id: "mock-1", data: { type: "reasoning", stage: "start", content: "Agent started" } },
Expand Down
1 change: 1 addition & 0 deletions app/api/chat/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NextRequest, NextResponse } from 'next/server';
export const dynamic = 'force-dynamic';

const MOCK_STREAM_EVENTS = [
{ id: "mock-1", data: { type: "reasoning", stage: "start", content: "Agent started" } },
Expand Down
1 change: 0 additions & 1 deletion app/api/get_session/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { NextRequest, NextResponse } from 'next/server';

export const dynamic = 'force-dynamic';

export async function GET(request: NextRequest) {
Expand Down
4 changes: 1 addition & 3 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import type { NextConfig } from "next";
const isDevMode = process.env.NODE_ENV === 'development';

const nextConfig: NextConfig = {
// Only use static export in production
...(isDevMode ? {} : { output: 'export' }),
trailingSlash: true,

// Images configuration
Expand Down Expand Up @@ -44,4 +42,4 @@ const nextConfig: NextConfig = {
}),
};

export default nextConfig;
export default nextConfig;