After the react routing setting createBrowserHistory causes the page to refresh, the page will report an error

  node.js, question

I configured it in ngnix.图片描述

图片描述

Question 1: There will be a problem after refreshing. I think there is a problem with my ngnix configuration, which led me to return the js and css files to index.html when refreshing the page.

Question 2: If I enter an address casually on the page, I will query the path of the url”http://localhost:8888/user “I entered incorrectly to find the css file, and my css is in the root directory. How can I solve this problem?

图片描述

History fallback