2022-11-14 23:12:51 +01:00
|
|
|
/** @type {import('next').NextConfig} */
|
2023-01-07 15:45:03 +01:00
|
|
|
require("dotenv").config({ path: "../../.env" });
|
|
|
|
|
|
2022-11-14 23:12:51 +01:00
|
|
|
const nextConfig = {
|
|
|
|
|
reactStrictMode: true,
|
2023-02-18 21:42:05 +01:00
|
|
|
swcMinify: false,
|
2022-11-24 12:21:45 +01:00
|
|
|
};
|
2022-11-14 23:12:51 +01:00
|
|
|
|
2023-01-09 17:10:36 +01:00
|
|
|
const withTM = require("next-transpile-modules")([
|
|
|
|
|
"@documenso/prisma",
|
|
|
|
|
"@documenso/lib",
|
2023-01-12 15:59:21 +01:00
|
|
|
"@documenso/ui",
|
2023-02-18 14:37:26 +01:00
|
|
|
"@documenso/pdf",
|
2023-01-25 10:50:58 +01:00
|
|
|
"@documenso/features",
|
2023-03-01 19:54:22 +01:00
|
|
|
"@documenso/signing",
|
2023-02-18 17:28:24 +01:00
|
|
|
"react-signature-canvas",
|
2023-01-09 17:10:36 +01:00
|
|
|
]);
|
2023-01-07 18:38:44 +01:00
|
|
|
const plugins = [];
|
|
|
|
|
plugins.push(withTM);
|
|
|
|
|
|
|
|
|
|
const moduleExports = () =>
|
|
|
|
|
plugins.reduce((acc, next) => next(acc), nextConfig);
|
|
|
|
|
|
|
|
|
|
module.exports = moduleExports;
|