Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does Preview work? #6

Open
ericclemmons opened this issue Mar 2, 2016 · 2 comments
Open

Does Preview work? #6

ericclemmons opened this issue Mar 2, 2016 · 2 comments
Assignees

Comments

@ericclemmons
Copy link

Hi!

  1. I followed the quickstart.
  2. Successfully completed it (it worked!)
  3. I edited the page in the Admin and saved it.
  4. Setup a preview URL http://localhost:3000/preview.
  5. Previewed the document, which does nothing more than redirect to / showing the original, published content.
  6. Clicking the Prismic badge in the bottom-right, a panel slides out showing the updated, saved content for previewing.
  7. Clicking that document sends me back to step 5.

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?

Or should p.getByUID('page', 'get-started', function (err, pagecontent) { do something different?

Thanks!

@erwan erwan self-assigned this Mar 3, 2016
@erwan
Copy link
Collaborator

erwan commented Mar 3, 2016

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).

@erwan
Copy link
Collaborator

erwan commented Mar 3, 2016

I've released a new version of this lib, could you try it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants