Skip to content

Changing image names in a content collection while the dev server is running breaks it #13149

Description

@ericswpark

Astro Info

Astro                    v5.2.5
Node                     v23.6.0
System                   Windows (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/mdx

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

N/A

Describe the Bug

When the live Astro dev server is running, attempting to move any folder containing an image out of a content collection will break it and cause a build failure.

On StackBlitz, you should get something like this:

Image

What's the expected result?

The Astro dev server should not crash and not have a build failure if a piece of content is removed from the collection that references images

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-vo52mlan?file=src%2Fcontent%2Fblog%2Ftest-post%2Findex.md

Participation

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)feat: content collectionsRelated to the Content Collections feature (scope)pkg: astroRelated to the core `astro` package (scope)

    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