常见问题
常见问题解答
路由#
博客特定路由#
博客的路由格式类似 /blog/:year/:id
内容#
heroImage
支持网络图片#
应配合 inferSize: true
使用以获取图片尺寸。示例:
heroImage:
{ src: 'https://img.tukuppt.com/ad_preview/00/15/09/5e715a320b68e.jpg!/fw/980', inferSize: true }
yamlVite#
Vite 阻塞请求#
请求被阻塞。不允许此主机("xxx")。
要允许此主机,请在 vite.config.js 中将 "xxx" 添加到 `preview.allowedHosts` 中。
log参见 选项 server.allowedHosts 未考虑 “true” ↗