error handling + file size
This commit is contained in:
@@ -4,6 +4,13 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user