vercel 部署vue项目刷新路由后404问题

在项目根目录创建一个vercel.json文件,内容如下:


{
  "rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}

posted @ 2022-08-16 06:26  郭万新  阅读(1365)  评论(0)    收藏  举报