How to add static files to gatsby site

 https://stackoverflow.com/questions/60517182/how-to-add-static-files-to-gatsby-site


  1. In your Gatsby project root is a /static folder. If it isn't there you can create it.

  2. Place your static HTML in there. It should have the path /static/moreStuff/evenMoreStuff,

  3. gatsby develop or gatsby 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:

URL parameters with React Router

 https://ui.dev/react-router-url-parameters If you're reading this, you're probably familiar with the idea of function parameters. T...