Overview
The Next.js + Sanity portfolio and blog theme has recently been upgraded to the Next.js App Router and TypeScript. This theme offers a full working demo at nextsanity.com and utilizes a tech stack consisting of Next.js, TypeScript, Tailwind, Sanity, SendGrid, and Vercel.
Features
- Next.js: Framework for building React applications.
- TypeScript: Strongly typed programming language.
- Tailwind: CSS framework for quick styling.
- Sanity: Headless CMS for content management.
- SendGrid: Email API for sending emails.
- Vercel: Hosting platform for deploying web applications.
- ConvertKit Newsletter Signup API: Integration for managing newsletter signups.
Installation
- Create a Sanity account.
- Create a new Sanity project as per instructions.
- Clone the repository and open it in the code editor.
- Run
npm installto install dependencies. - Add required environment variables to a
.env.localfile. - Set up CORS in the Sanity dashboard.
- Start the development server with
npm run dev. - Access Sanity Studio at
localhost:3000/studio. - Set up SendGrid following a tutorial if needed.
- Add environment variables to Vercel before deployment.
Summary
The Next.js + Sanity theme offers a robust solution for building portfolios and blogs. By leveraging Next.js and TypeScript, developers can create scalable and maintainable applications. The integration of Sanity as a headless CMS, along with additional tools like SendGrid and Vercel, enhances the functionality and performance of the theme. For those looking to set up this theme, the provided instructions guide users through the installation process effectively.