mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 08:42:12 +10:00
28 lines
656 B
JavaScript
28 lines
656 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
require("dotenv").config({ path: "../../.env" });
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
swcMinify: false,
|
|
env: {
|
|
IS_PULL_REQUEST: process.env.IS_PULL_REQUEST,
|
|
RENDER_EXTERNAL_URL: process.env.RENDER_EXTERNAL_URL,
|
|
},
|
|
};
|
|
|
|
const withTM = require("next-transpile-modules")([
|
|
"@documenso/prisma",
|
|
"@documenso/lib",
|
|
"@documenso/ui",
|
|
"@documenso/pdf",
|
|
"@documenso/features",
|
|
"@documenso/signing",
|
|
"react-signature-canvas",
|
|
]);
|
|
const plugins = [];
|
|
plugins.push(withTM);
|
|
|
|
const moduleExports = () => plugins.reduce((acc, next) => next(acc), nextConfig);
|
|
|
|
module.exports = moduleExports;
|