programing

Firebase 함수 다시 쓰기 및 vue 라우터와의 충돌

prostudy 2022. 3. 13. 11:04
반응형

Firebase 함수 다시 쓰기 및 vue 라우터와의 충돌

내가 vue 프로젝트를 공개하면, 소방 기지의 기능이 작동을 멈추고 이 노선의 모든 호출이 프로젝트 vue로 리디렉션된다.

여긴 내 소방 기지야js

{
    "hosting": {
      "public": "./dist/pwa-mat",
      "ignore": [
        "firebase.json",
        "**/.*",
        "**/node_modules/**"
      ],
    "rewrites": [ {
        "source": "/second", "function": "webPush"
      },{
        "source": "/subscribe", "function": "webPush"
      },{
        "source": "/hello/**", "function": "api"
      },{
        "source": "/subscribemsg/**", "function": "webPush"
      },
      {
        "source": "**",
        "destination": "/index.html"
      } ]
    }
  }

참조URL: https://stackoverflow.com/questions/51641205/conflicts-with-firebase-functions-rewrite-and-vue-router

반응형