Skip to content
Draft
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
2 changes: 2 additions & 0 deletions src/app/api/ask/quick/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { askTools } from "@/lib/ai/askTools";
import { streamText, hasToolCall, ModelMessage } from "ai";
import { getModel, getApiKeyForProvider } from "aieo";

export const runtime = "nodejs";

type Provider = "anthropic" | "google" | "openai" | "claude_code";

export async function GET(request: NextRequest) {
Expand Down
2 changes: 2 additions & 0 deletions src/app/api/ask/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { db } from "@/lib/db";
import { EncryptionService } from "@/lib/encryption";
import { validateWorkspaceAccess } from "@/services/workspace";

export const runtime = "nodejs";

export async function GET(request: NextRequest) {
try {
const session = await getServerSession(authOptions);
Expand Down
2 changes: 2 additions & 0 deletions src/app/api/gitsee/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { db } from "@/lib/db";
import { EncryptionService } from "@/lib/encryption";
import { validateWorkspaceAccessById } from "@/services/workspace";

export const runtime = "nodejs";

export async function POST(request: NextRequest) {
try {
const session = await getServerSession(authOptions);
Expand Down
2 changes: 2 additions & 0 deletions src/app/api/learnings/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { db } from "@/lib/db";
import { EncryptionService } from "@/lib/encryption";
import { validateWorkspaceAccess } from "@/services/workspace";

export const runtime = "nodejs";

export async function GET(request: NextRequest) {
try {
const session = await getServerSession(authOptions);
Expand Down
2 changes: 2 additions & 0 deletions src/app/api/swarm/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { SwarmStatus } from "@prisma/client";
import { getServerSession } from "next-auth/next";
import { NextRequest, NextResponse } from "next/server";

export const runtime = "nodejs";

export async function POST(request: NextRequest) {
if (isFakeMode) {
const { id, swarm_id } = await createFakeSwarm();
Expand Down
2 changes: 2 additions & 0 deletions src/app/api/tasks/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { authOptions } from "@/lib/auth/nextauth";
import { db } from "@/lib/db";
import { TaskStatus, Priority, WorkflowStatus } from "@prisma/client";

export const runtime = "nodejs";

export async function GET(request: NextRequest) {
try {
const session = await getServerSession(authOptions);
Expand Down
2 changes: 2 additions & 0 deletions src/app/api/workspaces/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { authOptions } from "@/lib/auth/nextauth";
import { createWorkspace, getUserWorkspaces, softDeleteWorkspace } from "@/services/workspace";
import { db } from "@/lib/db";

export const runtime = "nodejs";

// Prevent caching of user-specific data
export const dynamic = "force-dynamic";

Expand Down