when react app is deployed to GAE , specific path request return 404. I have two path in my app. "/" and "/login" the first one works fine, but the other one does not.
this is my app.yaml configuration.
runtime: nodejs12
handlers:
- url: /.*
static_files: build/index.html
upload: build/index.html
- url: /
static_dir: build
I tried some patterns such as
・ -url:(/.*)
・ -url: /login
static_files: build/index.html
upload: build/index.html
But, none of them worked.
My routing is like this.
<BrowserRouter>
<Route exact path='/' component={Home} />
<Route path='/login' component={LoginForm} />
</BrowserRouter>
By specifying url , I thought I can get "/login" page, but it does not. Does someone know why this happen ?
Thank you !