Skip to content

Static File Endpoints broken with trailingSlash: "always" in development #10149

@kripod

Description

@kripod

Astro Info

Astro                    v4.4.0
Node                     v20.10.0
System                   macOS (arm64)
Package Manager          pnpm
Output                   static
Adapter                  none
Integrations             astro-icon
                         @astrojs/mdx
                         @astrojs/sitemap
                         @astrojs/tailwind

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

No response

Describe the Bug

Since astro@4.1.0, Static File Endpoints return 404 in development (running astro dev) when trailingSlash: "always" is set in the Astro config.

What's the expected result?

Static File Endpoints should work as they did before merging #9597.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-fy7uro?file=src%2Fpages%2Ftest.json.js

Participation

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

Metadata

Metadata

Assignees

Labels

- P4: importantViolate documented behavior or significantly impacts performance (priority)feat: devRelated to `astro dev` CLI command (scope)regression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions