Skip to content

wooxudong/xudong-web

Repository files navigation

Netlify Status


JAMstack

  • Fast and secure sites and apps delivered by pre-rendering files and serving them directly from a CDN, removing the requirement to manage or run web servers.
  • Gatsby.js is used in this project.

Artifact

  • Prismic.io for headless CMS
  • Netlify for static site server
  • Gatsby for the static site generator

Setup

Find the gatsby-config.js file and make sure to replace the prismic token and repository name:

{
      resolve: `gatsby-source-prismic-graphql`,
      options: {
        repositoryName: process.env.PRISMIC_REPOSITORY_NAME,
        accessToken: process.env.PRISMIC_ACCESS_TOKEN,
        previews: false,
        ...
      }
    },
}

Development

gatsby develop

It should start the the project locally and you could check the site at localhost and graphql for prismic data at here.

gatsby clean

If you suspect something is not working, try run this command and it will delete the .cashe/ folder and public/ folder. Then hit gatsby develop should fix most of the issues.

gatsby build

This will build the project locally. You could try this before deploying to netlify.

About

My personal website using JAMstack (Gatsby.js). Nothing fancy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •