免责声明:我会使用a.)来问这个问题(在Netlify上有某种支持系统)(在Netlify实时聊天会话或c.)通过他们的支持社区,但是他们不让你,b.)他们没有一个和c)您目前无法从Netlify本身创建帐户或授权。(作为一个组织,他们并不真正理解是什么促使你为一项服务付费)。
无论如何,我在通过Vue.js配置部署带有VueRouter的VueRouter SPA时遇到了问题。问题是,所有内部路由都不是由SPA处理的。我的解决方案一直是将一个netlify.toml配置文件放在我正在部署的存储库的根目录中,如下所示:
# The following redirect is intended for use with most SPAs that handle routing internally.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200然而,我访问的每一条内部路线都给了我:

完全相同的回购,但部署在我的个人计划4个月前(它有相同的netlify.toml配置在同一位置)工作良好。应用程序还在本地处理当前部署分支。路由没有中断。是否还有其他人因为这种与Netlify不一致的重定向方法而受到影响?
发布于 2019-12-12 16:06:25
因此,我的具体解决方法是执行以下操作:
# The following redirect is intended for use with most SPAs that handle routing internally.
/* /index.html 200在那个文件里。
因此,对我来说,重定向的netlify.toml配置仍然失败。
发布于 2019-12-17 08:18:54
我也看到了这种行为。netlify.toml包含:
[[redirects]]
from = "/*"
to = "/index.html"
status = 200但不起作用。部署摘要甚至显示netlify根本没有获取重定向配置:
No redirect rules processed
This deploy did not include any redirect rules. Learn more about redirects.https://stackoverflow.com/questions/59308045
复制相似问题