databerry
databerry copied to clipboard
Serverless Function "api/datasources/check" is 59.42mb which exceeds the maximum size limit of 50mb
Deploying on Vercel errors out with "The Serverless Function "api/datasources/check" is 59.42mb which exceeds the maximum size limit of 50mb."

I had the same issue. ATM I just delete the sub-dependency that is causing the issue. Looking for a way to tell pnpm to not install this optional dependency

I managed to deploy on vercel updating next.config.js
const baseConfig = require('./next.config.base');
/** @type {import('next').NextConfig} */ const nextConfig = { ...baseConfig, experimental: { legacyBrowsers: false, outputFileTracingIgnores: ['canvas'], }, };
module.exports = nextConfig;
Thx for sharing!