Returned array from findSurround has appropriate surrounding elements.
Actual result
Both elements of findSurround return array are null.
Describe the bug
Not sure if related to https://github.com/nuxt/content/issues/1235, a separate findSurround() issue, I'm interpreting the docs wrong, or my content folder isn't set up right, but I can't seem to get findSurround to locate a previous or next content.
I first noticed it in my repo with numbered docs, found 1235, and tried using content-edge with no change. Whether I query using route parameters or manually with strings, the returned array is always [null,null] – I tried paring down to just one dir with 3 docs, as well as removing numbering, which did not change anything.
The same issue happened after forking https://stackblitz.com/github/nuxt/starter/tree/content and creating a quick subdirectory with 3 docs. The catchall page has hard-coded query info but I also left the dynamic info above it, commented out.
I am not seeing any errors in the console output.
Additional context
I'm not sure why npx nuxi info output for my local machine doesn't list the modules I'm using, but here they are:
Environment
Primary
StackBlitz
Reproduction
First noticed: https://github.com/michaelvcolianna/kiwisbybeat.net (findSurround is being used in
/pages/[series]/[comic].vue
)Plain StackBlitz fork: https://stackblitz.com/edit/github-pdzf4a?file=pages%2F[...slug].vue
Expecting result
Returned array from findSurround has appropriate surrounding elements.
Actual result
Both elements of findSurround return array are null.
Describe the bug
Not sure if related to https://github.com/nuxt/content/issues/1235, a separate findSurround() issue, I'm interpreting the docs wrong, or my content folder isn't set up right, but I can't seem to get findSurround to locate a previous or next content.
I first noticed it in my repo with numbered docs, found 1235, and tried using content-edge with no change. Whether I query using route parameters or manually with strings, the returned array is always
[null,null]
– I tried paring down to just one dir with 3 docs, as well as removing numbering, which did not change anything.The same issue happened after forking https://stackblitz.com/github/nuxt/starter/tree/content and creating a quick subdirectory with 3 docs. The catchall page has hard-coded query info but I also left the dynamic info above it, commented out.
I am not seeing any errors in the console output.
Additional context
I'm not sure why
npx nuxi info
output for my local machine doesn't list the modules I'm using, but here they are:Logs
No response