Files
sign/apps/web/next.config.js

34 lines
751 B
JavaScript
Raw Normal View History

2023-06-09 18:21:18 +10:00
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
2023-09-11 11:34:10 +03:00
const { version } = require('./package.json');
2023-06-09 18:21:18 +10:00
const { parsed: env } = require('dotenv').config({
path: path.join(__dirname, '../../.env.local'),
});
2023-01-07 15:45:03 +01:00
/** @type {import('next').NextConfig} */
2023-06-09 18:21:18 +10:00
const config = {
experimental: {
serverActions: true,
serverActionsBodySizeLimit: '50mb',
},
2022-11-14 23:12:51 +01:00
reactStrictMode: true,
transpilePackages: [
'@documenso/lib',
'@documenso/prisma',
'@documenso/trpc',
'@documenso/ui',
'@documenso/email',
],
2023-09-11 10:59:50 +03:00
env: {
2023-09-11 11:34:10 +03:00
APP_VERSION: version,
2023-09-11 10:59:50 +03:00
},
modularizeImports: {
'lucide-react': {
transform: 'lucide-react/dist/esm/icons/{{ kebabCase member }}',
},
},
2022-11-24 12:21:45 +01:00
};
2022-11-14 23:12:51 +01:00
2023-06-09 18:21:18 +10:00
module.exports = config;