简体   繁体   English

在 Netlify 上部署 React 应用程序返回 404 页面未找到

[英]Deploying React app on Netlify returns 404 page not found

It deploys successfully, but shows that there are no pages to show.它部署成功,但显示没有要显示的页面。 Although the zip file generated has all the data needed.尽管生成的 zip 文件包含所需的所有数据。

这是我的项目布局

I have my netlify linked with the correct git repo, so I put my base directory to as frontend folder, since I understand that it needs to go there.我的 netlify 与正确的 git 存储库链接,所以我将基本目录作为前端文件夹,因为我知道它需要 go 那里。 Netlify 构建设置

What am I doing wrong?我究竟做错了什么?

Publish directory should point to directory of your build, i assume that in your case its build folder because you are only deploying /frontend folder here发布目录应该指向你的构建目录,我假设你的情况是它的build文件夹,因为你只是在这里部署/frontend文件夹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM