Follow symlinks inside `content/`
Is your feature request related to a problem? Please describe
I want to be able to symlink directories into the content/ dir, or as the content/ dir itself.
When using queryContent in Nuxt v2, or queryCollection in Nuxt v3, symlinks are ignored and I am unable to query for their contents.
Describe the solution you'd like
I would like to be able to do the following
mkdir content
cd content
ln -s ../node_modules/symbolics-data
npm run dev
# See symbolics-data be queryable
Describe alternatives you've considered
I have tried symlinking different levels of the directories, and it seems that it just stops following the moment it hits a symlink.
Additional context
A screenshot of the directory I was trying to use. content was a real directory, containing a symlink to ../node_modules/symbolics-data
We were using a symlink to a directory installed via npm, but if we replace the symlink with the directory itself, nuxt content is super happy and does as we wish.
Instead of using symlinks, you can create a collection from an external source. All you need is to define cwd in your collection's source. Checkout https://content.nuxt.com/docs/collections/sources#cwd
I know I can define this other collection, but why can’t I just use a symlink as well? Is there some kind of design reason Nuxt does not want to follow symlinks?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.