The second iteration of my personal portfolio website oplevan.com built with Next.js, Sanity and hosted on Vercel.
- Create a Sanity account.
- Log into your account, create a new project and set up a dataset.
- In project root folder create a
.env.local
file and configure your environment variables:
NEXT_PUBLIC_SANITY_DATASET=<your dataset name>
NEXT_PUBLIC_SANITY_PROJECT_ID=<your sanity project ID>
- Install dependencies
npm install
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
- Open http://localhost:3000/studio and use your Sanity credentials to log into you Studio and start filling your content. You can read more about Sanity Studio.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
To learn more about Sanity headless CMS, take a look at the following resources:
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.