导航菜单
首页 >  Unable to Deploy Nextjs to Firebase Hosting Issue  > Deploying to firebase hosting fails for NextJS site · Issue #5649 · firebase/firebase

Deploying to firebase hosting fails for NextJS site · Issue #5649 · firebase/firebase

[REQUIRED] Environment info

firebase-tools: 11.25.2

Platform: macOS

[REQUIRED] Test case

Seems to work on a brand new website, but does not work on my project. O should mention my project has billing enabled, it's on the Blaze plan (despite the error message suggesting I should add a billing method)

[REQUIRED] Steps to reproduce

I run firebase deploy --only hosting, and I get:

✔ functions: functions folder uploaded successfully✔ functions: .firebase/xx/functions folder uploaded successfullyi hosting[xx]: beginning deploy...i hosting[xx]: found 84 files in .firebase/xx/hosting✔ hosting[xx]: file upload completei functions: updating Node.js 16 function firebase-frameworks-xx:ssrxx(us-central1)...⚠ functions: HTTP Error: 400, Could not update Cloud Run service projects/xx/locations/us-central1/services/ssrxx. spec.template.spec.containers.resources.limits.memory: Invalid value specified for memory. For the specified value, maxScale may not exceed 80.Consider running your workload in a region with greater capacity, decreasing your requested memory-per-instances, or requesting an increase in quota for this region if you are seeing sustained usage near this limit, see https://cloud.google.com/run/quotas. Your project may gain access to further scaling by adding billing information to your account.⚠ functions: failed to update function projects/xx/locations/us-central1/functions/ssrxxFailed to update function projects/xx/locations/us-central1/functions/ssrxx

[REQUIRED] Expected behavior

I expect the new version to deploy successfully

[REQUIRED] Actual behavior

It crashes, see above logs for information. Looks like I could fix it if I could specify a memory maxScale, but I don't think there's a way to do that from the CLI currently..?

相关推荐: