Deploy to Vercel
1
2
Name Your Repository
Vercel will ask you to name the new GitHub repository it creates for you. Choose a name that reflects your portfolio (for example,
my-portfolio or yourname-dev). Vercel clones olonjs/next-dev-portfolio into your account under that name.At the same time, the OlonJS Save2Repo Vercel integration is installed on your project. This integration is what allows Studio to commit content edits back to your repository. You do not need to configure it manually.3
Wait for the Build to Complete
Vercel runs the full build pipeline automatically:
- Prebuild — OlonJS syncs page schemas, validates all JSON files in
src/data/, and bakes the output topublic/. - Asset generation —
sitemap.xml,robots.txt,llms.txt, and JSON-LD metadata are written topublic/. - Next.js build — Pages are statically generated and bundled for the edge.
If the build fails, check the log for Zod validation errors. A validation error means one of the JSON files in
src/data/ has an invalid or missing field. This should not happen on a fresh clone — if it does, open an issue on the GitHub repo.4
Visit Your Live Site
When the build finishes, Vercel provides a
.vercel.app URL. Open it to see your portfolio running live with the default content — a hero section, sample case studies, a blog post, and an about page.This is your starting point. All the default content lives in JSON files inside your new GitHub repository, ready for you to personalise.5
Open Studio at /admin
Navigate to
https://your-site.vercel.app/admin to open the built-in Studio CMS. Studio reads your live content schemas and renders a form-based editor for every section of every page.6
Edit Content and Save
In Studio, select a section to edit — for example, open Home → Hero and change the headline to your name and tagline. Click Save.Here is what happens behind the scenes:Every save is a real Git commit. Open your repository on GitHub and you will see the commit history for every content change you make in Studio.
7
Next Steps
Your portfolio is live and editable. Here are the most common customisations to tackle next:
- Theme — Edit
src/data/config/theme.jsonto match your personal brand colours and typography. - Navigation — Update
src/data/config/site.jsonto change the nav links, site title, and social URLs. - Content — Use Studio to fill in your real bio, work history, projects, and blog posts.
- Custom domain — Add your own domain in the Vercel dashboard under Settings → Domains. See Deploy to Vercel for details.
Local Development
You can also run next-dev-portfolio on your machine for code-level customisation. Clone the repository that Vercel created in your GitHub account — this is your own copy, not the original template.1
Clone Your Repository
Copy the repository URL from GitHub (it will be
https://github.com/your-username/your-repo-name), then run:2
Install Dependencies
Install all Node.js dependencies with your preferred package manager:next-dev-portfolio requires Node.js 18.17 or later and npm 9+ (or equivalent pnpm/yarn versions).
3
Start the Development Server
Run the dev server:Next.js starts at http://localhost:3000. The OlonJS prebuild pipeline runs automatically before the dev server starts, validating your JSON and generating static assets.
4
Open Local Studio at /admin
Navigate to http://localhost:3000/admin to open Studio locally. When running on
localhost, Studio does not require ADMIN_PUBLIC_KEY — it is open by default for convenience.Edits you save in local Studio write directly to the JSON files in src/data/ on your filesystem. No network request or GitHub commit is made — the Save2Repo integration is only active on the deployed Vercel instance.You can also edit the
src/data/ JSON files directly in your code editor. The dev server will hot-reload the page automatically when it detects a file change.5
Commit and Push to Deploy
When you are happy with your local changes — whether made through Studio, direct JSON edits, or code changes — commit and push to your default branch:Vercel detects the push and starts a new deployment automatically. Your live site will be updated within a minute or two.
Local Studio saves write to
src/data/ files on disk. These changes are not automatically committed or pushed — you control when they go live. This makes local development safe for experimentation before publishing.