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

Wordpress and Gatsby Cloud Preview: Only working when site address is same as wordpress address #212

Open
THRY opened this issue Jan 18, 2022 · 1 comment

Comments

@THRY
Copy link

THRY commented Jan 18, 2022

Hi, i'm trying to get live previews to work with wordpress and gatsby cloud.

I found out that it only works when in the wordpress general settings, the "site address" and the "wordpress address" are the same url (pointing to the wordpress installation). Like here:
Bildschirmfoto 2022-01-18 um 12 28 47

It doesen't work, if i set the site address to where i deployed the gatsby site:
Bildschirmfoto 2022-01-18 um 12 28 53

For me, it would make sense to set the site address to where i deployed the gatsby site, so people working in the backend can easily watch the edited site via the permalink.
Bildschirmfoto 2022-01-18 um 12 30 33

Can anyone help me or did anyone did have the same experience?

@THRY THRY changed the title Wordpress and Gatsby Cloud Preview: Not working when Site URL is not Wordpress URL Wordpress and Gatsby Cloud Preview: Not working when site address is not wordpress address Jan 18, 2022
@THRY THRY changed the title Wordpress and Gatsby Cloud Preview: Not working when site address is not wordpress address Wordpress and Gatsby Cloud Preview: Only working when site address is same as wordpress address Jan 18, 2022
@TylerBarnes
Copy link
Collaborator

This is because WP still needs to use its frontend for routing to previews

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