Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/nicolasgrajaleshoyos/portafolio/llms.txt

Use this file to discover all available pages before exploring further.

After running npm run build, the dist/ directory contains a fully static site — plain HTML, CSS, and JavaScript with no server-side dependencies. This means it can be deployed to any static hosting platform in seconds. This page walks through the three most common options: Vercel, Netlify, and GitHub Pages, including how to handle SPA routing on each one.
Vercel detects Vite projects automatically and requires no extra configuration files. It sets the framework preset and output directory for you.Deploy via the Vercel CLI
1

Install the Vercel CLI

npm i -g vercel
2

Run the initial deploy

From the project root, run the vercel command. The CLI will prompt you to link the project to your Vercel account and confirm the detected settings (framework: Vite, output directory: dist).
vercel
3

Deploy to production

Once the project is linked, promote any subsequent build to the production URL with the --prod flag:
vercel --prod
Deploy via the Vercel DashboardAlternatively, connect the GitHub repository directly in the Vercel dashboard. Set the framework preset to Vite and the output directory to dist. After that, every push to the main branch triggers an automatic production deploy — no CLI needed.
Vercel handles SPA routing (redirecting 404s back to index.html) automatically for Vite projects. No vercel.json rewrites configuration is needed for Portfolio Moderno.

Custom Domain

All three platforms support pointing a custom domain (for example nicolasgrajaleshoyos.dev) to your deployed site via their respective dashboards — no changes to the Portfolio Moderno source code are required.
  • Vercel and Netlify: add the custom domain in the project’s domain settings. Both platforms provision a TLS certificate automatically via Let’s Encrypt.
  • GitHub Pages: add the domain under Settings → Pages → Custom domain, then create a CNAME DNS record pointing to <username>.github.io. If you use a custom domain with GitHub Pages, change the base option in vite.config.ts back to '/' so that asset paths are generated relative to the domain root rather than the repository sub-path.

Build docs developers (and LLMs) love