I have an application on Google AppEngine, using Python3 and Flask on the back end and Angular on the front. If the front end navigates to, say, /welcome using Angular routing, it works fine. But then if I hit the browser refresh, it gives a 404 Error, because, of course, xxxx.appspot.com/welcome does not exist on the back end. Is there a way around this? Here is my app.yaml:
runtime: python38
handlers:
- url: /rest/.*
script: auto
- url: /(.+)
static_files: dist/\1
upload: dist/(.*)
- url: /
static_files: dist/index.html
upload: dist/index.html