Deploy VUE 到 App Engine
GCP 建立 App Engine 選 Node.js
app.yaml
runtime: nodejs20
handlers:
# 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
將 dist 與 app.yaml 放一起
執行 gcloud app deploy
gcloud app browse
參照