https://stackoverflow.com/questions/60517182/how-to-add-static-files-to-gatsby-site
In your Gatsby project root is a
/static
folder. If it isn't there you can create it.Place your static HTML in there. It should have the path
/static/moreStuff/evenMoreStuff
,gatsby develop
orgatsby build
.
You're done.
Make sure not to create a page in your /pages
directory with the same name or route as your static html files.
Không có nhận xét nào:
Đăng nhận xét