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

Multisite setup - SSR wpapi connection issue #298

Open
dwojtyca opened this issue May 1, 2021 · 0 comments
Open

Multisite setup - SSR wpapi connection issue #298

dwojtyca opened this issue May 1, 2021 · 0 comments

Comments

@dwojtyca
Copy link

dwojtyca commented May 1, 2021

Hello, guys but I'm trying to connect my frontend to multisite wp backend and no luck yet. Basically, from browser perspective everything works fine (I'm able to open both my WP REST APIs using browser). Unfortunately, when frontend (NextJS) is trying to reach WP REST API on server side using node wpapi, it crashes (ECONNREFUSED).

My only assumption is that when frontend frontend tries to GET from WP it uses docker container name instead of real domain name so maybe that casues issues in WP?

I found this closed isssue - #204 - but unfortunately in my case it doesn't work.

Could you please give me any advices on that? @tinhochu did you solve this somehow?

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

1 participant