Skip to content

Instantly share code, notes, and snippets.

@ekoeryanto
Created February 15, 2018 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekoeryanto/ae7f8c3ec679aa00e197b64d5d7865e3 to your computer and use it in GitHub Desktop.
Save ekoeryanto/ae7f8c3ec679aa00e197b64d5d7865e3 to your computer and use it in GitHub Desktop.
Google App Engine Static Website Route
handlers:
- url: /$
static_files: public/index.html
upload: public/index.html
# Handle folder urls by serving the index.html page inside.
- url: /(.*)/$
static_files: public/\1/index.html
upload: public/.*/index.html
# Handle nearly every other file by just serving it.
- url: /(.+)
static_files: public/\1
upload: public/(.*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment