GCPバケットにcreate-react-appビルド(app.yamlファイル付き)をアップロードしました。このアプリケーションは、クラウドシェルを使用してApp Engineインスタンスにデプロイされています。Google Cloud Platformにcreate-react-appビルドをデプロイした後にURLが見つかりません
アプリのルートURLに行くと正常に動作します。しかしexample.com/anything
に行くと、次のエラーが返されます。
Error: Not Found
The requested URL /anything was not found on this server.
app.yamlをファイルには、次のようになります。
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /(.*\.(html|css|js))
static_files: build/\1
upload: build/(.*\.(html|css|js))
- url:/
static_files: build/index.html
upload: build/index.html
2番目のハンドラには 'url:。*'を使います。 – norbertpy