Closed dht closed 6 years ago
In our project we use react-router-dom and we defined a route:
/example.com/referral
It will not work when navigating directly to it as not all routes are redirected to:
/build/index.html
How can I rewrite all routes to /build/index.html?
The routes directive of static.json is designed to solve this problem.
static.json
Do I just put the static.json in the root folder?
@dht yes
In our project we use react-router-dom and we defined a route:
It will not work when navigating directly to it as not all routes are redirected to:
How can I rewrite all routes to /build/index.html?