We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Astro v5.0.9 Node v20.12.0 System macOS (arm64) Package Manager npm Output static Adapter none Integrations @astrojs/mdx @astrojs/sitemap
No response
From v5, I can no longer access images placed in the same folder as mdx files in Content Collections.
Here is the usage from the official documentation:
I have created a sample here. https://github.com/psephopaiktes/astro-images-in-content-collections
Most of it remains the same as the official blog sample for each version, but I have changed the following files:
In v4, it works fine as per the documentation, but in v5, the images either return a 404 error or the following error occurs:
A getStaticPaths() route pattern was matched, but no matching static path was found for requested path /blog/first-post/[object%20Object]
getStaticPaths()
/blog/first-post/[object%20Object]
The reason I want this structure is that I want to place the images for each blog post in the same folder as the post mdx file.
mdx
Bad:
Good:
Images placed in the same location as the .md file should be handled as Content Collections without errors.
If there is another solution to place images in the same folder, that would be OK to me.
https://github.com/psephopaiktes/astro-images-in-content-collections
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
From v5, I can no longer access images placed in the same folder as mdx files in Content Collections.
Here is the usage from the official documentation:
I have created a sample here.
https://github.com/psephopaiktes/astro-images-in-content-collections
Most of it remains the same as the official blog sample for each version, but I have changed the following files:
In v4, it works fine as per the documentation, but in v5, the images either return a 404 error or the following error occurs:
The reason I want this structure is that I want to place the images for each blog post in the same folder as the post
mdx
file.Bad:
Good:
What's the expected result?
Images placed in the same location as the .md file should be handled as Content Collections without errors.
If there is another solution to place images in the same folder, that would be OK to me.
Link to Minimal Reproducible Example
https://github.com/psephopaiktes/astro-images-in-content-collections
Participation
The text was updated successfully, but these errors were encountered: