Skip to content

[7.x] Content collection markdown hot-reload does not update dynamic blog slug page until dev server restart #17335

Description

@laukstein

Astro Info

Astro                    v7.0.7
Node                     v26.4.0
System                   Windows (x64)
Package Manager          pnpm
Output                   static
Adapter                  @astrojs/cloudflare

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

No response

Describe the Bug

In astro dev, updating a markdown file in a content collection (e.g. src/content/blog/post.md) does not refresh the corresponding dynamic slug page (/blog/post).
The dev server logs show the loader reloaded the file ([glob-loader] Reloaded data from ...), but the page continues serving stale content until astro dev is restarted.

Project details from repro:

  • Astro 7.0.7
  • Windows 10 (x64)
  • Node 26.4.0
  • pnpm
  • Route file: src/pages/blog/[slug].astro
  • Content collection via glob() in src/content.config.ts
  • output: "static" with Cloudflare adapter in astro.config.mjs

This appears similar to the previously closed issue #15555, but reproducible on stable 7.x.

What's the expected result?

When a markdown file in the content collection changes during astro dev, the corresponding dynamic slug page should render updated frontmatter/body immediately (without restarting the dev server).

Link to Minimal Reproducible Example

localhost

Participation

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage: unable to reproduceTriage bot attempted reproduction but could not reproduce

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions