mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
43 lines
910 B
JavaScript
43 lines
910 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const path = require('path');
|
|
const { version } = require('./package.json');
|
|
|
|
require('dotenv').config({
|
|
path: path.join(__dirname, '../../.env.local'),
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
experimental: {
|
|
serverActions: true,
|
|
serverActionsBodySizeLimit: '50mb',
|
|
},
|
|
reactStrictMode: true,
|
|
transpilePackages: [
|
|
'@documenso/lib',
|
|
'@documenso/prisma',
|
|
'@documenso/trpc',
|
|
'@documenso/ui',
|
|
'@documenso/email',
|
|
],
|
|
env: {
|
|
APP_VERSION: version,
|
|
NEXT_PUBLIC_PROJECT: 'web',
|
|
},
|
|
modularizeImports: {
|
|
'lucide-react': {
|
|
transform: 'lucide-react/dist/esm/icons/{{ kebabCase member }}',
|
|
},
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/ingest/:path*',
|
|
destination: 'https://eu.posthog.com/:path*',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|