Open ericclemmons opened 8 years ago
Hi!
/
What's confusing is that the docs make it seem much more complicated:
https://prismic.io/docs/in-website-preview#?lang=node
Doesn't app.route('/preview').get(prismic.preview); negate the need for most of the code?
app.route('/preview').get(prismic.preview);
Or should p.getByUID('page', 'get-started', function (err, pagecontent) { do something different?
p.getByUID('page', 'get-started', function (err, pagecontent) {
Thanks!
Hi,
There has been a bug fix recently in the Javascript kit for previews. Try updating to 2.1.3 (I'll update the package.json in this project).
I've released a new version of this lib, could you try it?
Hi!
/
showing the original, published content.What's confusing is that the docs make it seem much more complicated:
Doesn't
app.route('/preview').get(prismic.preview);
negate the need for most of the code?Or should
p.getByUID('page', 'get-started', function (err, pagecontent) {
do something different?Thanks!