带有Wordpress的盖茨比-内页链接无法正确形成

时间:2020-07-01 08:46:23

标签: wordpress gatsby

我正在尝试在WordPress中使用gatsby。我正在尝试gatsby网站上提供的入门程序。

  1. Gatsby Develop正在运行,没有错误。它正在正确提取所有帖子。
  2. 但是当我加载网站时,只有首页加载正确, 内页将我带到一些URL作为 http://0.0.7.227/10/15/what-is-the-issue/
  3. 主页列出了所有内容,并且分页也有效。

wordpress源配置:

{
  "baseUrl": "dev-somename.pantheonsite.io",
  "protocol": "http",
  "hostingWPCOM": false,
  "useACF": false,
  "includedRoutes": [
    "**/*/*/categories",
    "**/*/*/posts",
    "**/*/*/pages",
    "**/*/*/media",
    "**/*/*/tags",
    "**/*/*/taxonomies",
    "**/*/*/users"
  ]
}

终端输出的最后一部分。

success run queries - 40.874s - 2243/2244 54.90/s
success Generating image thumbnails - 41.515s - 7/7 0.17/s
⠀
You can now view gatsby-wordpress-libre-starter in the browser.
⠀
  http://localhost:8000/
⠀
View GraphiQL, an in-browser IDE, to explore your site's data and schema
⠀
  http://localhost:8000/___graphql
⠀
Note that the development build is not optimized.
To create a production build, use gatsby build
⠀
success Building development bundle - 5.957s

无法弄清楚下一步该怎么做。

0 个答案:

没有答案