Error: The Serverless Function "api/index" is 68.16mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size

Aperta
#113 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
php
Ambito
cloud

Direzione di ricerca

Start with the PHP example at the linked repository and inspect vercel.json, especially the [email protected] runtime setting. Reproduce the deployment for api/index and trace what contributes to the reported 68.16mb bundle. Done means the example deploys without exceeding Vercel's 50mb Serverless Function limit.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Running into the above error. Steps to reproduce:

  1. Clone example https://github.com/juicyfx/vercel-examples/tree/master/php
  2. Update runtime to [email protected] in vercel.json
  3. Attempt to deploy

This is my first time using Vercel, sorry if I am missing something basic.

Here is the full output from Vercel

[13:58:13.793] Cloning github.com/***************************** (Branch: *************, Commit: *******)
[13:58:16.783] Cloning completed: 2.990s
[13:58:16.938] Restored build cache
[13:58:16.993] Running "vercel build"
[13:58:17.592] Vercel CLI 28.12.7
[13:58:17.782] > Installing Builder: [email protected]
[13:58:21.951] 🐘 Downloading user files
[13:58:21.952] 🐘 Downloading PHP runtime files
[13:58:21.971] 🐘 Creating lambda
[13:58:22.367] Build Completed in /vercel/output [420ms]
[13:58:28.894] Failed to process build result for "api/index". Data: {"type":"Lambda"}.
[13:58:28.897] Error: The Serverless Function "api/index" is 68.16mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size

Lingua principale
PHP
Stelle
357
Fork
149
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di contributte/vercel-examples

Tutte le issue di contributte/vercel-examples

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.