New issue
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
UnknownContentCollectionError when Soft Links Used in Content Collections #8262
Comments
I can't figure out a way to create a real soft link in the above reproducible sandbox. But the problem is caused by the astro/packages/astro/src/content/utils.ts Lines 182 to 197 in 04fa5a1
This utility function will parse the collection name out of the |
Yep, this makes sense and it seems like we should support it! Probably didn't account for symlinks. |
While tackling this I found out that there's an option for Vite to preserve soft links when resolving. export default defineConfig({
vite: {
resolve: {
preserveSymlinks: true
}
}
}) |
Astro info
What browser are you using?
Chrome
Describe the Bug
data
or incontent
src/content
directoryWhat's the expected result?
It should work as normal
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-x2fbkv?file=src%2Fpages%2Findex.astro&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: