Personal portfolio website built with Next.js and Sanity.
web/- Next.js portfolio frontendstudio/- Sanity Studio for managing portfolio content
- Node.js 20 or later
- A Sanity project and dataset
Install dependencies in both applications:
cd web
npm install
cd ../studio
npm installCreate web/.env with the Sanity project configuration:
SANITY_PROJECT_ID=your-project-id
SANITY_DATASET=productionStart the frontend:
cd web
npm run devOpen http://localhost:3000.
Start Sanity Studio in a second terminal:
cd studio
npm run devBuild and start the frontend:
cd web
npm run build
npm run startBuild or deploy the Sanity Studio:
cd studio
npm run build
npm run deployPortfolio content is managed in Sanity Studio, including projects, experience, SEO settings, social images, and the site URL. The frontend uses that data for page metadata, project social previews, the sitemap, and robots.txt.
Run the frontend linter:
cd web
npm run lint