【发布时间】:2020-04-04 01:55:17
【问题描述】:
我正在尝试在由NuxtJS 和SapperJS 生成的IPFS 上部署静态网站。
在这两种情况下,我都遇到了同样的错误:
Failed to load resource: the server responded with a status of 404 (Not Found)
因为 HTML 中的链接看起来像这样:
<link href="client/main.850609924.css" rel="stylesheet">
当我访问任何index.html 时,所有静态都以http://127.0.0.1:8080/ 而不是http://127.0.0.1:8080/ipfs/<hash> 提示
我尝试在生成静态站点之前更改设置,但没有成功。
当我在Neltify 或AWS 上部署相同的静态站点时,一切都按预期工作。
我做错了什么?
【问题讨论】:
标签: javascript vue.js nuxt.js svelte ipfs