-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[gatsby-source-wordpress] baseUrl differs from actual fetch #3767
Comments
The plugin auto-discovers additional routes to visit — I'm guessing there's some sort of global wordpress baseUrl setting you need to change on your local instance of WP
|
@KyleAMathews I've done a search/replace across the whole WP database and don't see any more calvinkoepke.com references. Do you think it'd be in a theme/plugin file or something? |
This is past my WP working knowledge at this point :-) I'd look at what the REST API is putting out and go from there. |
@KyleAMathews It must've been some crazy caching because now it's pulling the right URL. I also removed Either way, it's no longer an issue. |
Description
I'm currently trying to import WordPress via
gatsby-source-wordpress
, but running into an issue where it's fetching from a URL different than thebaseUrl
option. I honestly don't even know where it's getting the domain from.Environment
Gatsby version: v1.1.23
Node.js version: v9.2.0
Operating System: MacOS 10.13.2
File contents (if changed):
gatsby-config.js
:package.json
:gatsby-node.js
: not changedgatsby-browser.js
: not changedgatsby-ssr.js
: not changedActual result
After running
gatsby develop
, terminal starts checking for endpoints and displays correct variables:But later down when it actually tries to fetch endpoints:
All of these return a 404 because there is no WP installation at
calvinkoepke.com
, but I haven't defined that anywhere (to my knowledge).Expected behavior
It should be fetching the
baseUrl
, as defined in the config:http://blog.dev/[endpoint]
Steps to reproduce
1. Install the plugin.
2. Set the
baseUrl
to a local WP url.3. Run
gatsby develop
...
The text was updated successfully, but these errors were encountered: