Skip to content

Multisite setup - SSR wpapi connection issue #298

@dwojtyca

Description

@dwojtyca

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions