通过 nginx 部署 create-react-app 构建文件夹时页面为空?

Page is empty when deploy create-react-app build folder by nginx?

我只是把build文件夹放在nginx服务器的根文件夹下,例如/var/www/html,但什么都看不到。 从浏览器检查时,root 内容为空?

enter image description here

检查您的 developer console for possible errors. You can also use React Developer Tools 以调试您的应用。您可以提供您的 non-sensitive 代码,以便我们更好地理解它。