0

Everytime a hit the

firebase deploy --only hosting

in my nextjs project it also deploys the functions (there is a folder in my project called functions where I coded all the functions)

when I run firebase deploy --only functions it works perfectly, only the functions are deployed

My firebase json:

{
  "functions": {
    "ignore": [
      "node_modules",
      ".git",
      "firebase-debug.log",
      "firebase-debug.*.log"
    ],
    "source": "functions"
  },
  "hosting": {
    "source": ".",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"      
    ]
  }
}

Project structure

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Luis Quiroga
  • 718
  • 2
  • 7
  • 22
  • 1
    If you have a bug report, you should post your steps to reproduce and log contents to [GitHub](https://github.com/firebase/firebase-tools). Stack Overflow can't really help you with this, unless you think you're doing some wrong or you have some special case to work around. – Doug Stevenson Mar 10 '23 at 16:48

0 Answers0