Preview without WordpressTemplates (FaustWp 0.2.0) #1243
-
Hello I want to implement the Preview Page without using the WordpressTemplate Component, as my project is not ready to use Templates yet. Is there a way to do so?. I tried to do so, by looking into the Wordpress Component and implementing the Preview Logic directly into my Preview page in Next js (pages/preview.tsx). The File looks like this, and says im Authenticated, but will not send the Header with the request. Additional when logging the getAccessToken() I always get undefined, although I should be authenticated, therefore there should be an accessToken. pages/preview.tsx:
Any Idea on that? Would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Hey @Julhol-droid. You are right. Currently we do not support previews without using the Template System. I'm adding a ticket to explore this possibility and I will let you know for any updates. Let me review the code that you posted though and see what is the problem. |
Beta Was this translation helpful? Give feedback.
Hey @Julhol-droid. You are right. Currently we do not support previews without using the Template System. I'm adding a ticket to explore this possibility and I will let you know for any updates.
Let me review the code that you posted though and see what is the problem.