Skip to content

Instantly share code, notes, and snippets.

@aprln
Last active January 27, 2021 18:25
Show Gist options
  • Save aprln/d229abe9dd9be55c93dd6db2e96b10f0 to your computer and use it in GitHub Desktop.
Save aprln/d229abe9dd9be55c93dd6db2e96b10f0 to your computer and use it in GitHub Desktop.
app.yaml for Google App Engine hosting Vue apps built with Quasar framework. Put this file in the "dist" folder then run "gcloud app deploy" inside the "dist" folder.
runtime: php55
api_version: 1
threadsafe: true
default_expiration: "5m"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
static_files: \1
upload: (.*\.(appcache|manifest))
expiration: "0m"
- url: /(.*\.css)
mime_type: text/css
static_files: \1
upload: (.*\.css)
- url: /statics/(.*\.(bmp|gif|ico|jpeg|jpg|png))
static_files: statics/\1
upload: statics/(.*\.(bmp|gif|ico|jpeg|jpg|png))
- url: /fonts/(.*\.woff)
mime_type: application/x-font-woff
static_files: fonts/\1
upload: fonts/(.*\.woff)
- url: /js/(.*\.js)
mime_type: text/javascript
static_files: js/\1
upload: js/(.*\.js)
- url: /
static_files: index.html
upload: index.html
expiration: "1m"
- url: /(.*)
static_files: index.html
upload: index.html
expiration: "1m"
@xaiyeon
Copy link

xaiyeon commented Feb 28, 2020

does this still work with Quasar 1.9.X?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment