空白页在部署 Next.js 存储库时出现

huangapple go评论56阅读模式
英文:

Blank page when deploying a Nextjs repository

问题

在 Netlify 成功部署仓库,但显示空白页面而不是我的网站:
这是我的仓库
这是Netlify 网站

这是我的 Netlify 构建设置:
空白页在部署 Next.js 存储库时出现

英文:

deploy a repo in netlify successfuly but it shows a blank page instead of my site:
This is my repo
and this is netlify site

this is my netlify building setting:
空白页在部署 Next.js 存储库时出现

答案1

得分: 1

问题出在public文件夹中的index.html。Netlify将其视为页面的根,而不是.next文件夹中的index.html

删除这个 然后重新部署!

顺便说一句,网站很酷!
1: https://github.com/ssadeghh/portfolio/blob/main/public/index.html

英文:

The issue is the index.html in the public folder. Netlify sees this as the root of the page instead of the .next folder's index.html

Delete this and redeploy!

Cool site btw!

huangapple
  • 本文由 发表于 2023年4月10日 23:34:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75978463.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定