【发布时间】:2021-01-01 16:38:26
【问题描述】:
我已经像这样设置了我的app.yaml 文件:
runtime: nodejs10
handlers:
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301
# Serve all static files with urls ending with a file extension
- url: /(.*\..+)$
static_files: dist/\1
upload: dist/(.*\..+)$
# catch all handler to index.html
- url: /.*
static_files: dist/index.html
upload: dist/index.html
这适用于 Flask 项目,但对于我的 Nodejs 项目,它似乎不起作用。我需要将script: auto 更改为其他内容吗?
【问题讨论】:
标签: node.js google-app-engine yaml