Giter VIP home page Giter VIP logo

Comments (4)

stefanjudis avatar stefanjudis commented on June 8, 2024

@applefreak Hey! 👋

Yes. The deploy or generate script will result in static sites. The way this works with contentful is, that you usually set up a CI service like CircleCI or Travis and trigger a new build with a Contentful webhook (which fires when you change content).

Or you use something like Netlify which offers the same functionality. :)

This way you can serve static HTML, which result in great performance and scales very well and don't need to generate it on the server side everytime some one visits your site. :)

from blog-in-5-minutes.

applefreak avatar applefreak commented on June 8, 2024

Thanks for the reply!

I was hoping that if there's a way for the page to auto fetch new resource from Contenful every time the page loads while still using nuxt generate.

Any way to over come this? Or is this the behavior of Nuxt?

from blog-in-5-minutes.

stefanjudis avatar stefanjudis commented on June 8, 2024

Well... This goes against the idea of generate. The goal of it is to pre-generate files.

For dynamic rendering on the server you can read a bit here and here. nuxt start should solve this problem.

But yeah, then you need a node capable service like now or something, right?

Hope this helps. :)

from blog-in-5-minutes.

applefreak avatar applefreak commented on June 8, 2024

Ohh, ok. I see now, thanks!

from blog-in-5-minutes.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.