简体   繁体   中英

Firebase deploy error - Configuring expiration modes is not permitted

I'm trying to deploy my firebase project but I'm getting this error:

HTTP Error: 400, Configuring expiration modes is not permitted

I haven't found anything on web and I don't know what could it be.

Anyone has encountered the same error?

Thanx

Posting the @ProfLayton's solution as a Community wiki for better visibility.

The error has been fixed by launching the deployment scripts separately:

  1. npm run build = REACT_APP_ENV=PROD GENERATE_SOURCEMAP=false react-scripts build
  2. firebase use [proj-name]
  3. firebase deploy --only functions
  4. firebase deploy --only hosting:prod

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM