My personal blog is a dynamic, structured content platform powered by Sanity.io.
To get started with Frank's Blog:
- Clone this repository: Obtain a local copy of the project.
- Install Dependencies: Run
npm installin the project's root folder. - Start the Application:
- Run
npm run devto start both the studio and frontend locally. - The studio will be available at
http://localhost:3333. - The frontend will be accessible at
http://localhost:8000.
- Local Production Build: Use
npm run buildfor a local production build.
To enable this feature:
- Create a token with read rights at your project’s API settings on manage.sanity.io.
- Rename
.env.development.templateto.env.developmentand include your token asSANITY_READ_TOKEN="yourTokenHere". - Restart the development server using
ctrl + Candnpm run dev.
Note: Adjust watchMode and overlayDrafts in gatsby-config.js for different preview behaviors.
The blog is configured for automatic deployment via Netlify. Changes committed to the master branch on GitHub trigger deployment. Modify deployment settings on Netlify if needed.