边缘星云

返回

常见问题

常见问题解答

路由#

博客特定路由#

博客的路由格式类似 /blog/:year/:id

参见 4.0.2-beta如何使文章链接中包含年份

内容#

heroImage 支持网络图片#

应配合 inferSize: true 使用以获取图片尺寸。示例:

heroImage:
  { src: 'https://img.tukuppt.com/ad_preview/00/15/09/5e715a320b68e.jpg!/fw/980', inferSize: true }
yaml

Vite#

Vite 阻塞请求#

请求被阻塞。不允许此主机("xxx")。
要允许此主机,请在 vite.config.js 中将 "xxx" 添加到 `preview.allowedHosts` 中。
log

参见 选项 server.allowedHosts 未考虑 “true”

#

参见 BUN_LINK_PKG 环境变量无法设置成功