On Gatsby Cms How Can I Set The About Page As A Index Page
Hi I installed the gatsby cms starter with netlify, this project came with a started template called kaldi that have a basic post and pages, is easy to create fields and build the
Solution 1:
Gatsby, by default, will generate a path based on the file name. So if you have a file at pages/index.js
it will generate a file named public/index.html
which is typically going to be served as the root directory index.
To change this page, you have a few options.
- Configure your server to serve
public/about.html
as the root directory index, though this is uncommon and likely to be hard to debug later. - Replace
pages/index.js
with the content of yourpages/about.js
file. - Export the top-level component from
pages/about.js
frompages/index.js
as the default
Post a Comment for "On Gatsby Cms How Can I Set The About Page As A Index Page"