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
I've a web built with Nuxt 2 deployed in Vercel where I'm using the @nuxt/content module for rendering some articles. It's using SSR and target: server, and everytime the server hibernates due to lack of activity, the first load takes +10 seconds or directly returns a timeout.
It's caused because when the server does the cold start, it is parsing the documents again reaching the time limit. I'm not sure why is this happening and how can I fix it. I guess moving to ssr: false can maybe help but I'm afraid my SEO can be affected. I believe a better solution should exist just to avoid re-parsing the documents everytime it does a cold start.
I've tried many configurations to avoid the server parsing the documents every cold start but didn't succed. I also tried keep ssr: true with target: static but didn't managed to make it work. And even if it worked, I doubt that would solve the problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've a web built with Nuxt 2 deployed in Vercel where I'm using the
@nuxt/content
module for rendering some articles. It's using SSR andtarget: server
, and everytime the server hibernates due to lack of activity, the first load takes +10 seconds or directly returns a timeout.It's caused because when the server does the cold start, it is parsing the documents again reaching the time limit. I'm not sure why is this happening and how can I fix it. I guess moving to
ssr: false
can maybe help but I'm afraid my SEO can be affected. I believe a better solution should exist just to avoid re-parsing the documents everytime it does a cold start.Parsing documents at cold start
nuxt.config.js
vercel.json
I've tried many configurations to avoid the server parsing the documents every cold start but didn't succed. I also tried keep
ssr: true
withtarget: static
but didn't managed to make it work. And even if it worked, I doubt that would solve the problem.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions