Fix: Add dynamic export to analytics route and exclude dev-server from deploy
This commit is contained in:
parent
8ca401ef29
commit
64a945da7f
|
|
@ -46,3 +46,6 @@ docker-compose.override.yml
|
|||
# logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# local dev script
|
||||
dev-server.js
|
||||
|
|
@ -2,6 +2,8 @@ import { NextRequest, NextResponse } from 'next/server';
|
|||
import { cookies } from 'next/headers';
|
||||
import { db } from '@/lib/db';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
try {
|
||||
const userId = cookies().get('userId')?.value;
|
||||
|
|
|
|||
Loading…
Reference in New Issue