【发布时间】:2018-11-15 09:13:40
【问题描述】:
我在 Google App Engine 上部署了一个 Angular 6 应用程序。 app.yaml 配置如下所示:
runtime: python27
api_version: 1
threadsafe: true
skip_files:
- (?!^dist)
handlers:
- url: /
static_files: dist/index.html
upload: dist/index.html
- url: /(.*)
static_files: dist/\1
upload: dist/(.*)
一切正常,我可以访问所有内容,直到我在路由上重新加载页面或通过路由(例如 myapp.com/route)直接访问网站。这样做我会收到 The requested URL /route was not found on this server 错误消息。
【问题讨论】: