My personal website built with Gatsbyjs
.env file with the following environment variables (see the
gatsby-cli globally to use it easily:
npm install -global gatsby-cli
Install all dependencies:
Start the development server:
Test production build
For the 404 page and the rss.xml:
gatsby build && gatsby serve public
surge globally to use it easily (once):
npm install --global surge
Deploy it on surge:
Used by others than me
Feel free to copy any code you like and don't forget to:
- Use you own environment variables
- Use your own CNAME file with your own domain
- Use your own redirects
- Use your own pages, images, files etc.
Some specs to remember especially with respect to images.
- Thumbnail size for contentful: 240x135 (16:9)
In Contentful don't try embed.ly embeds in the long text properties. Just copy-paste the iframe.