404:vercel 部署后NOT_FOUND

问题描述 投票:0回答:1

我的投资组合网站在本地主机上运行良好,但是当我将其部署在 vercel 上时,我的 linkedin 个人资料和 github 页面的 url 显示 404:NOT_FOUND 错误

这是我网站的链接文字。任何人都可以帮助我吗,我被困在这里很长时间了

html css github frontend vercel
1个回答
0
投票

您在 href 中添加的链接不正确。您必须在 https 后面添加 //,如下所示。
https://github.com/[用户名]
与 LinkedIn 类似。

<img
    src="./assets/linkedin.png"
    alt="My LinkedIn profile"
    class="icon"
    onclick="location.href='https://www.linkedin.com/in/shaileshoza/'"
/>
<img
    src="./assets/github.png"
    alt="My Github profile"
    class="icon"
    onclick="location.href='https://github.com/shailesh2503'"
/>
© www.soinside.com 2019 - 2024. All rights reserved.