【问题标题】:How to get Angular app working with Cloudflare Workers - Workers Sites如何让 Angular 应用程序与 Cloudflare Workers 一起工作 - Workers Sites
【发布时间】:2020-02-27 22:41:00
【问题描述】:

我正在努力让 SPA 与 Cloudflare 的 Workers Sites 一起使用 Angular。我正在关注找到here 的教程(但补充了Angular-not React 的步骤),一切都很好,直到发布后我收到浏览器错误-在您的内容命名空间中找不到index.html

到目前为止,我的故障排除让我可以在下面链接:

https://github.com/cloudflare/kv-asset-handler#servesinglepageapp

但是我不确定如何为 Angular 配置/使用本指南,以便解决我的上述问题。

【问题讨论】:

    标签: angular single-page-application cloudflare cloudflare-workers


    【解决方案1】:

    wrangler.toml 文件应该在[site].bucket 上的构建文件夹指向./dist/<name-of-the-project>,而不是指南中看到的./build

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-22
      • 2017-09-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多