reactjs
nginx reactjs custom 500 error gets sent back but doesn't render on the screen
I'm making a fetch request on the client side from and returning 500 with the backend api, which works fine and the response comes back to the client as 500, however, nginx doesn't redirect the client to the 500.html page it just sends the page back in the response body, how can I make it redirect to 500.html instead of sending it back in the response body? http { root deployment_tests/test1/build; server { listen 8080; server_name test; location / { try_files $uri /index.html; } location /api { proxy_pass http://127.0.0.1:3001; proxy_intercept_errors on; } error_page 500 502 503 504 /500.html; location /500.html { try_files $uri /500.html; } } }
Related Links
How does one set the tabIndex attribute on a draft-js instance?
ComponentDidMount() not working
UIScrollView Canvas Equivalent?
ReactJS - props or propTypes?
React Router V4 structure
Should a view be ordering data?
Unable to load React class component inside other class component
How to get history on react-router v4?
Redux react immutable setIn element changes whole list
react: fade-in/slide-in animation when render component
ReactJS component vendors
css-loader, sass-loader not working webpack 2
The best way to organize your site ready for both PC and SP in reactjs, responsive or 2 sources?
Check data has already been fetched for react-redux in action, reducer or component?
<element>.innerText in component method code does not work properly in enzyme testing. Testing react component with Jest+Enzyme(mount())
React Webpack in Production Error #105