Next.js Discord

Discord Forum

Size of uploaded file exceeds 300MB — how to check which file sizes in Vercel dashboard

Unanswered
Exotic Shorthair posted this in #help-forum
Open in Discord
Exotic ShorthairOP
Summary
Hi! Seems like most devs who try developing python on Vercel encounter this issue. Is there a way that we can check which files are too big? It would help to get an idea from the Vercel dashboard but I'm not sure exactly where I can find it.

Example
No response

Steps to Reproduce
No need to reproduce since it's quite lengthy and complex. Essentially this is my scripts in my package.json file, and as you can see I have three different ports running.

I'm just experimenting with the idea of having multiple ports on the same host on Vercel, but I'd like to get a clear guide on whether it's even possible in the first place. Seems like the app needs to be incredibly lightweight to get past the 300MB issue. Also wondering If it's possible to upgrade and offset this limit. I can't seem to find the upgrade option anywhere in the documentation. Is it like this for all tiers?
  "scripts": {
    "fastapi-dev": "pip3 install -r requirements.txt && python3 -m uvicorn api.index:app --reload",
    "chainlit-dev": "chainlit run copilot.py -h --no-cache --port 8080",
    "next-dev": "next dev",
    "dev": "concurrently \"npm run next-dev\" \"npm run fastapi-dev\" \"npm run chainlit-dev\"",
    "lint": "eslint src && tsc",
    "test": "pnpm run test:playwright && pnpm run test:jest",
    "test:playwright": "playwright test",
    "test:jest": "jest",
    "build": "velite && next build",
    "start": "next start",
    "analyze": "ANALYZE=true next build",
    "prune-unused": "npm prune"


  },

1 Reply

Exotic ShorthairOP
I asked the support of Vercel (AI) and it said this:

"As for upgrading to offset the limit, the knowledge base suggests that the fastest solution is to upgrade to the Pro plan. This plan offers more generous usage limits and pay-as-you-go options. However, it does not specify whether this would increase the maximum uncompressed size limit for Serverless Functions.

If you've checked the above and are still unable to resolve the issue, you may need to create a support case for further assistance."

Seems like it's not in the documentation?