#Nuxt rebuild with every Directus field update? 😬

8 messages · Page 1 of 1 (latest)

deft pivot
#

👋 Hello fellow Directus users 💪 I’ve been kicking around a Nuxt + Vue frontend that pulls from my Directus setup, and it’s been going well 👍 But what I hadn’t realized is that although my local dev setup always pulls the latest data from Directus, my production server does not. It seems like I have to npx nuxi build every time I want to see updates in Directus reflected in my production front end?! That can’t be right! I must have borked something with hydration? 😅 I’m sure this is a noob predicament—I’m still new to this whole stack. Any words of wisdom / ideas on what I’ve misconfigured? I would be so grateful! 🙏

cunning condorBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please make sure your question includes the following:

  • An explanation of exactly what you're trying to achieve.
  • Any and all related code or previous attempts.
  • The exact issue or error you are facing.
  • Any screenshots if applicable.

When you're done with this thread, please close it.

(If you have a support agreement and need help, please contact the core team via email.)

arctic pollen
#

Maybe your cache setting sir

deft pivot
glass quest
#

so you would need SSR i guess

deft pivot
#

I ... almost follow you 😅 Can you explain a bit more? My frontend is not SSR; it queries my Directus API live. I know the precompiled version of the site will still have the old data until I npx nuxi build again, but shouldn’t hydration pretty quickly replace that content on the live frontend site?

glass quest
#

Well it seems like something is not right with generating the frontend then