mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
Implementation of a universal upload allowing for multiple storage backends starting with `database` and `s3`. Allows clients to put and retrieve files from either client or server using a blend of client and server actions.
24 lines
656 B
JavaScript
24 lines
656 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const path = require('path');
|
|
const { withContentlayer } = require('next-contentlayer');
|
|
|
|
const { parsed: env } = require('dotenv').config({
|
|
path: path.join(__dirname, '../../.env.local'),
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
experimental: {
|
|
serverActions: true,
|
|
},
|
|
reactStrictMode: true,
|
|
transpilePackages: ['@documenso/lib', '@documenso/prisma', '@documenso/trpc', '@documenso/ui'],
|
|
modularizeImports: {
|
|
'lucide-react': {
|
|
transform: 'lucide-react/dist/esm/icons/{{ kebabCase member }}',
|
|
},
|
|
},
|
|
};
|
|
|
|
module.exports = withContentlayer(config);
|