2026-08-19 17:40:14 +07:00
|
|
|
import type { NextConfig } from "next";
|
|
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
|
|
|
|
// @mcpedia/db pulls in the `postgres` driver + node:fs; keep it external to
|
|
|
|
|
// the server bundle so it runs in the Node runtime as-is.
|
2026-08-22 11:41:49 +07:00
|
|
|
serverExternalPackages: [
|
|
|
|
|
"@mcpedia/core",
|
|
|
|
|
"@mcpedia/db",
|
|
|
|
|
"@mcpedia/config",
|
|
|
|
|
"@mcpedia/parser",
|
|
|
|
|
"@mcpedia/search",
|
|
|
|
|
],
|
2026-08-19 17:40:14 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|