与Firebase函数重写和vue路由器冲突

时间:2018-08-01 19:46:02

标签: javascript firebase vue.js google-cloud-functions vue-router

当我将vue项目公开时,firebase的功能将停止工作,并且这些路由的所有调用都将重定向到项目vue

这是我的firebase.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"
      } ]
    }
  }

0 个答案:

没有答案