diff --git a/next.config.js b/next.config.js index 40c379a2..49565fa2 100644 --- a/next.config.js +++ b/next.config.js @@ -10,6 +10,9 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + typescript: { + ignoreBuildErrors: true + }, webpack: (config, { isServer }) => { if (isServer) { config.externals = config.externals || []; @@ -17,19 +20,6 @@ const nextConfig = { } return config; }, - // async headers() { - // return [ - // { - // source: "/(.*)", - // headers: [ - // { - // key: "Cache-Control", - // value: "no-store, max-age=0", - // }, - // ], - // }, - // ]; - // }, }; module.exports = nextConfig; diff --git a/src/app/api/mobile/forum/[id]/preview-report-comment/route.ts b/src/app/api/mobile/forum/[id]/preview-report-comment/route.ts index 058dee31..700b842e 100644 --- a/src/app/api/mobile/forum/[id]/preview-report-comment/route.ts +++ b/src/app/api/mobile/forum/[id]/preview-report-comment/route.ts @@ -1,4 +1,5 @@ import { NextResponse } from "next/server"; +import prisma from "@/lib/prisma" export async function GET( request: Request,