mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
21 lines
439 B
JavaScript
21 lines
439 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
require("dotenv").config({ path: "../../.env" });
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
distDir: "build",
|
|
};
|
|
|
|
const withTM = require("next-transpile-modules")([
|
|
"@documenso/prisma",
|
|
"@documenso/lib",
|
|
]);
|
|
const plugins = [];
|
|
plugins.push(withTM);
|
|
|
|
const moduleExports = () =>
|
|
plugins.reduce((acc, next) => next(acc), nextConfig);
|
|
|
|
module.exports = moduleExports;
|