Skip to content

应该等待integrations运行完再处理部署 #1

@nookery

Description

@nookery

@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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions