Skip to content

SAVE_DEBOUNCE_MS Too Short Causes Incomplete Data in data-store.json #13310

Closed
@justin5267

Description

@justin5267

Astro Info

Astro                    v5.3.1
Node                     v22.14.0
Node_options             max-old-space-size: 12000
System                   Windows (x64)
Package Manager          pnpm
Output                   static
Adapter                  none
Starlight Version:       0.32.1
Page Count:              800+

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

The SAVE_DEBOUNCE_MS value is too short, causing incomplete page generation during development.

  • Running "pnpm run dev", pages with filenames later in the alphabet (in the docs folder) are skipped, and corresponding pages are not generated. Upon checking data-store.json, the missing pages were not included, and the file size is only 180-190MB.

  • Modifying "SAVE_DEBOUNCE_MS" from 500 to 5000, and running "pnpm run dev" again will resolve the above issue. All pages generate correctly, and the size of data-store.json increases to approximately 540MB.

What's the expected result?

  • Increase the default SAVE_DEBOUNCE_MS value, or allow users to customize it.

Link to Minimal Reproducible Example

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P2: has workaroundBug, but has workaround (priority)feat: content layerRelated to the Content Layer feature (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions