콘텐츠로 이동

Experimental collection storage

이 콘텐츠는 아직 번역되지 않았습니다.

Type: "single-file" | "chunked"
Default: "single-file"

추가된 버전: astro@7.1.0 새로운 기능

This experimental feature allows you to change how content collections’ data is stored.

By default, Astro stores this data in a single file at .astro/data-store.json. When set to "chunked", Astro splits the data across multiple files inside the .astro/data-store/ folder.

astro.config.mjs
import { defineConfig } from "astro/config";
export default defineConfig({
experimental: {
collectionStorage: "chunked"
}
});

In chunked mode, files are split across multiple chunks. Astro creates a new chunk when the current chunk is larger than 10 MB.

This option is recommended when deploying to platforms that have a size limit for individual assets.

기여하기 커뮤니티 후원하기