Fix Vercel build: force-dynamic on all API routes #3991
10 changed files+10−0
Modifiedapp/api/auth/google/route.js+1−0View fileUnifiedSplit
@@ -1,3 +1,4 @@
1export const dynamic = "force-dynamic"
12import { sql } from '@vercel/postgres'
23import { NextResponse } from 'next/server'
34import bcrypt from 'bcryptjs'
Modifiedapp/api/auth/login/route.js+1−0View fileUnifiedSplit
@@ -1,3 +1,4 @@
1export const dynamic = "force-dynamic"
12import { sql } from '@vercel/postgres'
23import { NextResponse } from 'next/server'
34import bcrypt from 'bcryptjs'
Modifiedapp/api/auth/signup/route.js+1−0View fileUnifiedSplit
@@ -1,3 +1,4 @@
1export const dynamic = "force-dynamic"
12import { sql } from '@vercel/postgres'
23import { NextResponse } from 'next/server'
34import bcrypt from 'bcryptjs'
Modifiedapp/api/grammar/route.js+1−0View fileUnifiedSplit
@@ -1,3 +1,4 @@
1export const dynamic = "force-dynamic"
12import { NextResponse } from 'next/server'
23import { authenticate, checkLimit, recordUsage, initDb } from '../../../lib/db'
34
Modifiedapp/api/health/route.js+1−0View fileUnifiedSplit
@@ -1,3 +1,4 @@
1export const dynamic = "force-dynamic"
12import { NextResponse } from 'next/server'
23
34export async function GET() {
Modifiedapp/api/rewrite/route.js+1−0View fileUnifiedSplit
@@ -1,3 +1,4 @@
1export const dynamic = "force-dynamic"
12import { NextResponse } from 'next/server'
23import { authenticate, checkLimit, recordUsage, getVoiceContext, initDb } from '../../../lib/db'
34
Modifiedapp/api/stripe/checkout/route.js+1−0View fileUnifiedSplit
@@ -1,3 +1,4 @@
1export const dynamic = "force-dynamic"
12/**
23 * POST /api/stripe/checkout
34 *
Modifiedapp/api/stripe/portal/route.js+1−0View fileUnifiedSplit
@@ -1,3 +1,4 @@
1export const dynamic = "force-dynamic"
12/**
23 * POST /api/stripe/portal
34 *
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts