Files
FTP/next.config.ts
2025-12-11 19:12:00 +00:00

26 lines
564 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Disable server/dev sourcemaps to avoid Windows source map parse warnings
productionBrowserSourceMaps: false,
// Allow large file uploads (up to 10GB)
experimental: {
serverActions: {
bodySizeLimit: "10gb",
},
},
webpack: (config, { dev, isServer }) => {
if (dev && isServer) {
config.devtool = false;
}
return config;
},
// Acknowledge Turbopack config to silence migration warning
turbopack: {},
};
export default nextConfig;