-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
@edgeone/astro监听的时机不对,假设有个网站地图的集成
integrations: [
...
sitemap(),
});构建完成,此时sitemap还没生成,就开始复制文件了,导致部署后的网站没有网站地图。
应该等待sitemap处理完后再复制文件。
日志:
18:00:10 [build] Rearranging server assets...
18:00:16 [build] Waiting for integration "@edgeone/astro", hook "astro:build:done"...
18:00:20 [@edgeone/astro] ✅ Build complete! Ready to deploy to EdgeOne Pages.
18:00:23 [build] Waiting for integration "pagefind", hook "astro:build:done"...
18:00:31 [pagefind] Pagefind indexed 4591 pages
18:00:39 [pagefind] Pagefind wrote index to /dist/client/pagefind
18:00:39 [@astrojs/sitemap] `sitemap-index.xml` created at `dist/client`
18:00:20 [@edgeone/astro] ✅ Build complete! Ready to deploy to EdgeOne Pages.
这个操作太早了,应该等待其他集成处理完。
Metadata
Metadata
Assignees
Labels
No labels