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
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Running into the above error. Steps to reproduce:
- Clone example https://github.com/juicyfx/vercel-examples/tree/master/php
- Update runtime to [email protected] in vercel.json
- 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
- Ngôn ngữ chính
- PHP
- Star
- 357
- Fork
- 149
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của contributte/vercel-examples
-
ERROR: DEPLOY TO LARAVELĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
contributte/vercel-examples#150 · 2 bình luận ·
-
laravel v10 doesnt supported?Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
contributte/vercel-examples#130 · 1 bình luận · 1 reaction ·
-
Execute artisan command(s)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
contributte/vercel-examples#128 · 1 bình luận ·
-
new symfony projectĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
contributte/vercel-examples#119 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
contributte/vercel-examples#116 ·
Tất cả issue của contributte/vercel-examples
Issue tương tự
-
Activity page icons previewĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Automattic/static-site-importer#3129 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Group 2 - Data Storage | Tripal DBX | Chado Group 5 - Search | ElasticSearch | Views Priority - Medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
category::bug code priority::normal
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
e0ipso/simple_oauth_21#58 ·
Maintainer thường phản hồi trong vòng 1 ngày