# [START runtime]runtime: nodejs8api_version: 1instance_class: F2
handlers:
- url: / static_files: dist/index.html upload: dist/index.html secure: always
- url: / static_dir: dist# [END runtime]
You may check your handler elements descriptions through this link.
Note that Google Groups are reserved for general Google Cloud Platform-end product discussions and not for technical questions. For further technical support, I recommend that you post your full detailed question to Stack Overflow, using the supported Cloud tags.
You may check your handler elements descriptions through this link.
Note that Google Groups are reserved for general Google Cloud Platform-end product discussions and not for technical questions. For further technical support, I recommend that you post your full detailed question to Stack Overflow, using the supported Cloud tags.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/c95cee97-96a4-45e3-b619-63de54f3622e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I checked the GCP documentation throughly prior to publishing my question and there isn't any clear instruction for mapping ReactJS routes correctly in app.ymal config handlers. And, I was wondering if I cloud be missing something in my config or is it even possible achieving this with App Engine at all!... Anyway, will continue looking for the answer in other platform. Than you for the tips!
On Wed, Jul 25, 2018 at 11:28 PM 'Katayoon (Cloud Platform Support)' via Google App Engine <google-appengine@googlegroups.com> wrote:
--You may check your handler elements descriptions through this link.
Note that Google Groups are reserved for general Google Cloud Platform-end product discussions and not for technical questions. For further technical support, I recommend that you post your full detailed question to Stack Overflow, using the supported Cloud tags.
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
It seems your first handlers is setting '/' with 'dist/index.html'. I would change the second handler to be more precise or simply add the wildcard: '/*'. This way any url other than the root '/' should refer to the static dir you've set.
On Wednesday, July 25, 2018 at 5:23:34 PM UTC-4, Birhanu Hailemariam wrote:
I checked the GCP documentation throughly prior to publishing my question and there isn't any clear instruction for mapping ReactJS routes correctly in app.ymal config handlers. And, I was wondering if I cloud be missing something in my config or is it even possible achieving this with App Engine at all!... Anyway, will continue looking for the answer in other platform. Than you for the tips!
On Wed, Jul 25, 2018 at 11:28 PM 'Katayoon (Cloud Platform Support)' via Google App Engine <google-a...@googlegroups.com> wrote:
--You may check your handler elements descriptions through this link.
Note that Google Groups are reserved for general Google Cloud Platform-end product discussions and not for technical questions. For further technical support, I recommend that you post your full detailed question to Stack Overflow, using the supported Cloud tags.
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/c95cee97-96a4-45e3-b619-63de54f3622e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/aff8b2b7-08c4-4d45-a6cc-252e827d5f68%40googlegroups.com.
# [START runtime]
runtime: nodejs8
api_version: 1
instance_class: F2
handlers:
- url: /(.*)
static_files: dist/index.html
upload: dist/index.html
secure: always
- url: /
static_dir: dist
# [END runtime]
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/b778e78d-d617-4a3a-8707-2bc60aeebf4e%40googlegroups.com.