Re: [google-appengine] Re: React JS routers doesn't work

2018-07-31 Thread Birhanu Hailemariam
Yes Yasser, part of it is exactly like that and I also added the following line between those *urls*. ` - url: / static_files: dist/index.html upload: dist/index.html` ` On Mon, Jul 30, 2018 at 11:48 PM 'Yasser Karout (Cloud Platform Support)' via Google App Engine wrote: > Birhanu's

Re: [google-appengine] Re: React JS routers doesn't work

2018-07-30 Thread 'Yasser Karout (Cloud Platform Support)' via Google App Engine
Birhanu's app.yaml looks like this according to the changes he mentioned: # [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] On

Re: [google-appengine] Re: React JS routers doesn't work

2018-07-30 Thread Nikos Katsikanis
pls share your ap.yaml, I have the same issue with a vue app On Friday, July 27, 2018 at 2:26:23 PM UTC+1, Birhanu Hailemariam wrote: > > That looks like it. Changed the first handler to this */(.*) *and the > send only to* / *and now got it work. Thanks, Jean! > > On Fri, Jul 27, 2018 at 12:26

Re: [google-appengine] Re: React JS routers doesn't work

2018-07-27 Thread Birhanu Hailemariam
That looks like it. Changed the first handler to this */(.*) *and the send only to* / *and now got it work. Thanks, Jean! On Fri, Jul 27, 2018 at 12:26 AM 'Jean Juste-constant' via Google App Engine wrote: > It seems your first handlers is setting '/' with 'dist/index.html'. I > would change

Re: [google-appengine] Re: React JS routers doesn't work

2018-07-26 Thread 'Jean Juste-constant' via Google App Engine
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,

Re: [google-appengine] Re: React JS routers doesn't work

2018-07-25 Thread Birhanu Hailemariam
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

[google-appengine] Re: React JS routers doesn't work

2018-07-25 Thread 'Katayoon (Cloud Platform Support)' via Google App Engine
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