Description
[REQUIRED] Environment info
global firebase v - 11.30.0
Repository is using pnpm. The next app is within a workspace.
project firebase
"firebase": "^9.22.0",
"firebase-tools": "^12.1.0"
firebase config
{
"hosting": {
"source": "./",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"frameworksBackend": {
"region": "europe-west1",
"cpu": 1,
"maxInstances": 1,
"invoker": "public",
"cors": true,
"ingressSettings": "ALLOW_ALL"
}
}
}
firebase-tools:
Platform:
macOS
[REQUIRED] Test case
N/A
[REQUIRED] Steps to reproduce
firebase deploy of the frameworks enabled nextjs app
[REQUIRED] Expected behavior
example.com/api/endpoint does not throw 500, Invariant: failed to start render worker Error: listen EADDRNOTAVAIL: address not available
[REQUIRED] Actual behavior
Local, emulator works as expected including nextjs /app/api/* function
Deployment is successful and the Nextjs framework app.
When deployed, GET request function works as expected.
When trying to access POST request, we see a failure even if the functions are the same - basically trying to return 200 status with empty object.
Requesting POST API endpoint fails with 500. "Invariant: failed to start render worker Error: listen EADDRNOTAVAIL: address not available"
Logs in GCP don't provide much of additional information.