databerry icon indicating copy to clipboard operation
databerry copied to clipboard

Serverless Function "api/datasources/check" is 59.42mb which exceeds the maximum size limit of 50mb

Open koala73 opened this issue 1 year ago • 1 comments

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

CleanShot 2023-04-04 at 08 01 06@2x

koala73 avatar Apr 04 '23 04:04 koala73

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

Screenshot 2023-04-04 at 11 17 35

gmpetrov avatar Apr 04 '23 09:04 gmpetrov

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;

Louvivien avatar May 09 '23 15:05 Louvivien

Thx for sharing!

gmpetrov avatar May 10 '23 13:05 gmpetrov