You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the error occurs, the network tab shows a different response to the XHR API call e.g. https://nuxtissue.tomgregory.com/api/_content/query/bRcR49RreS.1734656338633.json?_params=%7B%22first%22:true,%22where%22:%5B%7B%22_path%22:%22%2Fsupport%22%7D%5D,%22sort%22:%5B%7B%22_stem%22:1,%22$numeric%22:true%7D%5D%7D
The response contains an array of items:
[
{"_path":"/privacy"},
{"_path":"/support"}
]
(truncated for clarity)
When the error doesn't occur, the response includes a single item:
{"_path":"/support"}
(truncated for clarity)
Could be that the response contains an array of items, rather than the specific item, that's causing the issue?
What else?
No error responses for any network calls
No errors logged in browser console
No errors logged on backend
Works running locally via npm run dev
Works running locally via Node.js (without aws_lambda Nitro preset)
Works when NUXT_APP_CDN_URL is not set
Additional context
View the deployment configuration in severless.yml (uses Serverless Framework).
Logs
The text was updated successfully, but these errors were encountered:
Environment
AWS Lambda Node.js 22 (not reproducable locally)
Reproduction
https://github.com/tkgregory/nuxt-content-issue
Deployed environment: https://nuxtissue.tomgregory.com/privacy — repeatedly click the links until you see the error (happens about 50% of the time).
Describe the bug
Steps to reproduce
/pages
that include Markdown and link to each other e.g./pages/privacy.vue
/pages/support.vue (similar as above)
NUXT_APP_CDN_URL
What I've noticed
When the error occurs, the network tab shows a different response to the XHR API call e.g.
https://nuxtissue.tomgregory.com/api/_content/query/bRcR49RreS.1734656338633.json?_params=%7B%22first%22:true,%22where%22:%5B%7B%22_path%22:%22%2Fsupport%22%7D%5D,%22sort%22:%5B%7B%22_stem%22:1,%22$numeric%22:true%7D%5D%7D
The response contains an array of items:
(truncated for clarity)
When the error doesn't occur, the response includes a single item:
(truncated for clarity)
Could be that the response contains an array of items, rather than the specific item, that's causing the issue?
What else?
npm run dev
aws_lambda
Nitro preset)NUXT_APP_CDN_URL
is not setAdditional context
View the deployment configuration in severless.yml (uses Serverless Framework).
Logs
The text was updated successfully, but these errors were encountered: