18 lines
791 B
TypeScript
18 lines
791 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
outputFileTracingIncludes: { '/api/pdf-assets/[...path]': ['./node_modules/pdfjs-dist/build/pdf.worker.min.mjs', './node_modules/pdfjs-dist/cmaps/**/*', './node_modules/pdfjs-dist/standard_fonts/**/*', './node_modules/pdfjs-dist/wasm/**/*'] },
|
|
experimental: { serverActions: { bodySizeLimit: '10mb' } },
|
|
async redirects() {
|
|
return [
|
|
{ source: '/rk2', destination: '/', permanent: false },
|
|
{ source: '/rk2/:path+', destination: '/:path+', permanent: false },
|
|
{ source: '/rk/:path*', destination: '/alt/rk/:path*', permanent: false },
|
|
{ source: '/visu/:path*', destination: '/alt/visu/:path*', permanent: false },
|
|
];
|
|
},
|
|
/* config options here */
|
|
};
|
|
|
|
export default nextConfig;
|