A personal portfolio built with Next.js and an embedded Sanity CMS.
Prerequisites: Node.js 18 or newer (includes npm) and Git.
-
Clone the repository and move into the folder:
git clone <repository-url> cd portfolio
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:3000 in your browser.
The content editor is at /studio. Until you connect the CMS (below), the site
runs from the local content in src/content/site.ts, so it works out of the box.
-
Create a free Sanity project and copy its Project ID.
-
Create a
.env.localfile in the project root:NEXT_PUBLIC_SANITY_PROJECT_ID=your_project_id NEXT_PUBLIC_SANITY_DATASET=production
-
Restart the dev server, then edit everything at
/studio.
- Import this repository into Vercel.
- Add the same environment variables under Project → Settings → Environment
Variables (plus
NEXT_PUBLIC_SITE_URLfor your domain). - Deploy. Every push to the default branch redeploys automatically.