From 6801ad4249b6cc9621de0c37339182f8ff7ab493 Mon Sep 17 00:00:00 2001 From: Sparsh Sam <110058692+sparshsam@users.noreply.github.com> Date: Sun, 28 Jun 2026 11:03:03 -0400 Subject: [PATCH] Clean up: remove temporary force-static from API routes --- apps/web/src/app/api/identify/route.ts | 2 -- apps/web/src/app/api/mcp/tokens/[id]/route.ts | 10 ---------- apps/web/src/app/api/mcp/tokens/route.ts | 2 -- apps/web/src/app/auth/callback/route.ts | 1 - 4 files changed, 15 deletions(-) diff --git a/apps/web/src/app/api/identify/route.ts b/apps/web/src/app/api/identify/route.ts index 5036105..96a913f 100644 --- a/apps/web/src/app/api/identify/route.ts +++ b/apps/web/src/app/api/identify/route.ts @@ -1,7 +1,5 @@ import { NextRequest, NextResponse } from "next/server"; -export const dynamic = "force-static"; - const PLANTNET_API_BASE = "https://my-api.plantnet.org/v2/identify/all"; /** diff --git a/apps/web/src/app/api/mcp/tokens/[id]/route.ts b/apps/web/src/app/api/mcp/tokens/[id]/route.ts index 400f02f..da3c05d 100644 --- a/apps/web/src/app/api/mcp/tokens/[id]/route.ts +++ b/apps/web/src/app/api/mcp/tokens/[id]/route.ts @@ -11,16 +11,6 @@ import { NextResponse } from "next/server"; import { createClient } from "@/lib/supabase/browser"; import { createAdminClient } from "@/lib/supabase/admin"; -export const dynamic = "force-static"; -export const dynamicParams = false; - -export function generateStaticParams() { - if (process.env.CAPACITOR_BUILD === "true") { - return [{ id: "placeholder" }]; - } - return []; -} - export async function DELETE( _request: Request, { params }: { params: Promise<{ id: string }> }, diff --git a/apps/web/src/app/api/mcp/tokens/route.ts b/apps/web/src/app/api/mcp/tokens/route.ts index 7b582ac..5784ec2 100644 --- a/apps/web/src/app/api/mcp/tokens/route.ts +++ b/apps/web/src/app/api/mcp/tokens/route.ts @@ -13,8 +13,6 @@ import { createClient } from "@/lib/supabase/browser"; import { createAdminClient } from "@/lib/supabase/admin"; import { sha256Hex, generateToken } from "@/lib/mcp-auth"; -export const dynamic = "force-static"; - /** * Generate a display prefix for the token (first 12 chars + "..."). */ diff --git a/apps/web/src/app/auth/callback/route.ts b/apps/web/src/app/auth/callback/route.ts index ca1e3b3..902ddf2 100644 --- a/apps/web/src/app/auth/callback/route.ts +++ b/apps/web/src/app/auth/callback/route.ts @@ -12,7 +12,6 @@ import { NextResponse } from "next/server"; import type { NextRequest } from "next/server"; export const runtime = "nodejs"; -export const dynamic = "force-static"; export async function GET(request: NextRequest) { const requestUrl = new URL(request.url);