【发布时间】:2021-12-06 14:06:50
【问题描述】:
此 React 网站在 Google Cloud Platform 上提供服务
我想编辑现有的处理程序
- url: /(.*)$
static_files: public/\1/index.html
upload: public/.*/index.html
摆脱这样的警告Static file referenced by handler not found: public/_ah/start/index.html
我已经看到this 解决方案,但我不太确定如何在我的情况下使用它。有任何想法吗? 我尝试了下面的选项,但它不起作用,构建失败。
- url: /(?!.*\/_ah).*$
static_files: public/\1/index.html
upload: public/.*/index.html
【问题讨论】:
标签: reactjs google-cloud-platform