Closed busanTeddyBear closed 3 days ago
My package.json that in functions
folder is:
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase emulators:start --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"engines": {
"node": "20"
},
"main": "index.js",
"dependencies": {
"firebase-admin": "^12.2.0",
"firebase-functions": "^5.0.1"
},
"devDependencies": {
"firebase-functions-test": "^3.3.0"
},
"private": true
}
My package.json that in hosting
folder is:
{
"name": "hosting",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@heroicons/react": "^2.1.4",
"@nextui-org/react": "^2.4.2",
"framer-motion": "^11.2.12",
"next": "^14.2.4",
"next-intl": "^3.15.2",
"next-themes": "^0.3.0",
"react": "^18.3.1",
"react-device-detect": "^2.2.3",
"react-dom": "^18.3.1",
"zustand": "^4.5.4"
},
"devDependencies": {
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.4",
"eslint-plugin-local-rules": "^3.0.2",
"eslint-plugin-perfectionist": "^2.11.0",
"postcss": "^8.4.38",
"prettier": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.2"
}
}
My firebase.json is:
{
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"functions": [
{
"source": "functions",
"codebase": "default",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log"
]
}
],
"hosting": {
"source": "hosting",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"frameworksBackend": {
"region": "asia-northeast3"
}
},
"storage": {
"rules": "storage.rules"
},
"emulators": {
"functions": {
"port": 5001
},
"firestore": {
"port": 8080
},
"hosting": {
"port": 5000
},
"storage": {
"port": 9199
},
"ui": {
"enabled": true
},
"singleProjectMode": true
}
}
Hey @busanTeddyBear, thanks for reaching out. I think this could be marked as a duplicate of https://github.com/firebase/firebase-tools/issues/4757. In order to keep a single line of communication, please refer to the other ticket for any updates. Feel free to leave a comment on the issue to share your observations.
Also, I noticed that you’re using firebase-tools v13.11.4 on a Windows machine. Just wanted to let you know that there are currently issues(https://github.com/firebase/firebase-tools/issues/7378 and https://github.com/firebase/firebase-tools/issues/7363) related to deployments to Firebase Hosting which affects v13.11.4 and v13.11.3. We have a fix that should be available in our next release. In the meantime, you might want to use v13.11.2 to avoid issues.
[REQUIRED] Environment info
[REQUIRED] Test case
Run
firebase deploy
command.[REQUIRED] Steps to reproduce
N/A
[REQUIRED] Expected behavior
After a successful build the functions for next.js, the image created for the build should be automatically removed, but it always fails. This causes the following error message to be displayed continuously.
Additionally, even after attempting redeployment, the build image deletion still fails. However, the overall project deployment is completed successfully.
[REQUIRED] Actual behavior
Related issues