FAQs
Frequently asked questions
Path#
Blog specific path#
Routing blogs format like /blog/:year/:id
See 4.0.2-beta如何使文章链接中包含年份(原站外链接,已停用).
Content#
Support web images for heroImage#
It should be used with inferSize: true to get the image size. Example:
heroImage:
{ src: 'https://img.tukuppt.com/ad_preview/00/15/09/5e715a320b68e.jpg!/fw/980', inferSize: true }yamlBuild#
Vite Block Request#
Blocked request. This host ("xxx")is not allowed.
To allow this host, add "xxx" to `preview.allowedHosts` in vite.config.js.logSee option server.allowedHosts doesn’t take into account “true”(原站外链接,已停用)
Problem with BUN_LINK_PKG#
See BUN_LINK_PKG 环境变量无法设置成功(原站外链接,已停用)
Build No “Exports” Main Defined#
07:39:23 [ERROR] [@astrojs/vercel] An unhandled error occurred while running the "astro:build:done" hook
No "exports" main defined in /vercel/path0/node_modules/estree-walker/package.json
Stack trace:
...logTry redeploy your project without existing build cache.
Detail: oven-sh/bun/issues: error No “exports” main defined in /vercel/path0/node_modules/estree-walker/package.json(原站外链接,已停用)
内容归属:CuiFrost
内容索引
-
个人笔记
-
模板说明 · Setup
-
模板说明 · Integrations
-
模板说明 · Advanced