Files
PAGIVA/next.config.ts
2026-11-28 19:54:22 +07:00

20 lines
688 B
TypeScript

import type { NextConfig } from "next";
// Sub-path deploy (e.g. "/pagiva" for https://loma.chat/pagiva). Build-time only.
const basePath = (process.env.NEXT_PUBLIC_BASE_PATH ?? "").replace(/\/+$/, "");
const nextConfig: NextConfig = {
output: "standalone",
...(basePath ? { basePath } : {}),
outputFileTracingIncludes: {
// Prisma 7 generates a hash-named client module that @vercel/nft can't
// discover via static analysis — force-include it everywhere Prisma is used.
"/*": [
"./node_modules/@prisma/client/**/*",
"./node_modules/@fontsource/noto-sans-thai/files/noto-sans-thai-thai-{600,700}-normal.woff",
],
},
};
export default nextConfig;