Gatsby.js - 404 page for nested project

拜拜、爱过 提交于 2020-02-02 14:49:53

问题


I have a Gatsby.js project that I host through Github Pages. The project is within a directory called /an I'm deploying it through gh-pages package with the following command

gatsby build --prefix-paths && gh-pages -d public -b master -e ./an

I've followed https://www.gatsbyjs.org/docs/path-prefix/ to set the proper prefix path. My custom 404 page is not detected through Github Pages. I believe it is because it has to be set on the repo root and not in /an.

How to tell GitHub Pages to use the 404 page generated in /an?

来源:https://stackoverflow.com/questions/59345552/gatsby-js-404-page-for-nested-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!