Comments (4)
@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.
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.
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.
Ohh, ok. I see now, thanks!
from blog-in-5-minutes.
Related Issues (15)
- bad link HOT 1
- Netlify deployment HOT 7
- npm run generate issue with markdown-it HOT 7
- consider removing `now` dependencies? HOT 2
- Error no file `.contentful.sample.json` HOT 2
- Content Modeling Import timing out HOT 2
- Converting circular structure to JSON HOT 2
- fatal: reference is not a tree: e9a9c62ce02115f7a4d7f197ba43362dcf0ea3d0 HOT 12
- Misleading advertising HOT 3
- Strange issue not able to access inside of JSON for images? HOT 2
- Get linked images in a post HOT 3
- Dynamic page title
- Cannot complete "npm run generate"
- Fix content modelling download
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog-in-5-minutes.