Mi Portfolio is pre-configured for Vercel deployment usingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/lgomegarc/mi-portfolio/llms.txt
Use this file to discover all available pages before exploring further.
@sveltejs/adapter-vercel. Deploying is a zero-config process — connect the GitHub repo to Vercel and it builds automatically.
Prerequisites
Before deploying, make sure you have:- A Vercel account (the free Hobby tier is sufficient)
- The repository pushed to GitHub (fork of
lgomegarc/mi-portfolioor your own copy) - (Optional) EmailJS credentials for the contact form — see EmailJS Credentials
Deploy from GitHub
Import the repository on Vercel
Go to https://vercel.com/new and click Import next to the
lgomegarc/mi-portfolio GitHub repository (or your fork). You may need to grant Vercel access to your GitHub account if this is your first time.Confirm the framework preset
Vercel automatically detects SvelteKit via the
svelte.config.js file. The framework preset will be set to SvelteKit and no build settings need to be changed — the build command, output directory, and install command are all inferred correctly.Add environment variables (optional)
If you want the contact form to send real emails, expand the Environment Variables section on the configuration screen and add the following variables before deploying:
VITE_EMAILJS_SERVICE_IDVITE_EMAILJS_TEMPLATE_IDVITE_EMAILJS_PUBLIC_KEY
Build Command and Output
Vercel invokes thebuild script from package.json:
vite build, SvelteKit compiles the application and @sveltejs/adapter-vercel transforms the output into the .vercel/output/ directory structure that Vercel’s deployment infrastructure expects. This directory contains the static assets, serverless function bundles, and the Vercel routing configuration — all generated automatically with no manual configuration required.
Environment Variables on Vercel
Vite only exposes variables prefixed withVITE_ to browser-side code. Variables without this prefix are available only in server-side contexts and will be undefined in the client bundle.
The following environment variables are used by the contact form:
| Variable | Description |
|---|---|
VITE_EMAILJS_SERVICE_ID | EmailJS service identifier |
VITE_EMAILJS_TEMPLATE_ID | EmailJS email template identifier |
VITE_EMAILJS_PUBLIC_KEY | EmailJS public API key |
Vercel Analytics
Mi Portfolio includes@vercel/analytics as a production dependency. It is activated in src/hooks.client.js:
Vercel Analytics is already integrated in the project via
@vercel/analytics. Enable it in your Vercel project settings under the Analytics tab.Custom Domain
To serve the portfolio from your own domain (e.g.leila.dev), no code changes are needed. Navigate to Vercel Dashboard → Project → Settings → Domains, enter your domain, and follow the DNS configuration instructions Vercel provides. Vercel automatically provisions and renews a TLS certificate via Let’s Encrypt.
Local Build Preview
Before pushing to production, you can verify the production build locally:vite preview serves the compiled .svelte-kit/output (local build artifacts) on http://localhost:4173 by default, giving you a close approximation of the production environment before deploying.