20 lines
428 B
JavaScript
20 lines
428 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
webpack: (config) => {
|
|
// Handle PDF.js worker
|
|
config.resolve.alias.canvas = false;
|
|
config.resolve.alias.encoding = false;
|
|
return config;
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: 'http://backend:3001/api/:path*'
|
|
}
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|