deploy-vercel
Skill0 starsChanged 57 days agoMITView on GitHub
Met un site vitrine Astro EN LIGNE sur Vercel en connectant le repo GitHub (déploiement auto à chaque push + URLs de preview). Vérifie le build en local, contrôle l'adaptateur Vercel, guide l'import du repo (OAuth) pas-à-pas, configure les variables d'environnement (manuel dashboard + commandes CLI), puis smoke-test le site live. S'arrête à l'URL xxx.vercel.app (le domaine custom = skill domaine-dns). Déclenche sur "déploie le site", "mets en ligne", "déploiement Vercel", "publie sur Vercel", ou à l'étape 9 de l'orchestrateur generateur-site-web.
- Reads credentials
- Deletes or force-pushes
- Installs packages
- Commits and pushes
2 other projects use a version of this.
Adopted by
Most recently taken up by
- prinx/agentstheir own version, first seen Oct 20, 2026
- ewebdzine/claude-code-time-trackertheir own version, first seen Jul 26, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- ewebdzine/claude-code-time-tracker★ 0same name
- prinx/agents★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- assetsSkill
- audit-secuSkill
- code-reviewSkill
- domaine-dnsSkill
- effetsSkill
- forms-resendSkill
- github-initSkill
- initSkill
- mentions-legalesSkill
- pre-launch-qaSkill
- reproduce-sectionSkill
- seoSkill
- vitrine-contenuSkill
- vitrine-inspirationSkill
- vitrine-promptsSkill
- vitrineSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Commit + push l'état propre : git add .
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
deploy-vercel — site en ligne sur Vercel (repo GitHub connecté)
Tu mets le site en ligne sur Vercel en connectant le repo GitHub : à partir de là, chaque git push redéploie tout seul et chaque branche/PR obtient une URL de preview. C'est la méthode habituelle (dashboard, git-connecté).
Périmètre : ce skill s'arrête à une URL
xxx.vercel.appqui marche et se redéploie seule. Le nom de domaine custom + DNS = skilldomaine-dns(#5). Environnement : Windows / PowerShell. Jamaisrm -rf→trash.
Prérequis
- Repo GitHub présent et à jour → sinon lance
github-initd'abord. - Adaptateur Vercel dans
astro.config.mjs(posé parforms-resendsi formulaires). Vérifie :
Si absent et qu'il y a une routeimport vercel from '@astrojs/vercel'; export default defineConfig({ site: 'https://...', output: 'static', adapter: vercel(), /* … */ });/api/*(formulaires) → installe :npx astro add vercel. Site 100 % statique sans aucune route serveur → l'adaptateur n'est pas obligatoire (Vercel sert ledist/), mais l'installer ne gêne pas.
Étape 1 — Pré-vol (zéro-touch, à faire AVANT de pousser)
- Le build passe en local :
npm run build. S'il échoue, corrige avant de déployer (on ne pousse jamais une erreur). .envn'est pas commité (vérifiegit status; il doit être dans.gitignore).siteest bien défini dansastro.config.mjs(sinon sitemap/canonical cassés).- Commit + push l'état propre :
git add . ; git commit -m "chore: prêt pour déploiement" ; git push.
Étape 2 — Compte Vercel (manuel → vidéo cours)
Va sur https://vercel.com/signup → "Continue with GitHub" (le plus simple : relie direct GitHub). Confirme l'email si demandé.
Étape 3 — Importer le repo (manuel, OAuth → vidéo cours) — détails : references/import-projet.md
- Dashboard Vercel → "Add New…" → "Project".
- "Import Git Repository" → autorise Vercel à accéder à GitHub (OAuth, une fois) → choisis le repo du site → "Import".
- Vercel détecte Astro automatiquement (Framework Preset = Astro, build
astro build). Ne change rien. - Avant de cliquer Deploy, déplie "Environment Variables" et ajoute celles de l'étape 4 (évite un 1er déploiement cassé).
Étape 4 — Variables d'environnement — détails : references/env-vars.md
À reporter depuis le .env local (elles ne sont pas dans le repo) :
RESEND_API_KEY(si formulaires)RESEND_FROM(ex.onboarding@resend.deven test,contact@ledomaine.fraprès vérif domaine)- toute variable
PUBLIC_*éventuelle.
Deux façons :
- Manuel (cours) : projet → Settings → Environment Variables → ajoute chaque clé/valeur (Environments : Production + Preview) → Save.
- CLI :
npm i -g vercel vercel login vercel link # relie le dossier au projet Vercel vercel env add RESEND_API_KEY production vercel env add RESEND_FROM production
⚠️ Après ajout/modif d'une variable, il faut REDÉPLOYER pour qu'elle prenne effet (Deployments → … → Redeploy).
Étape 5 — Déployer
Clique "Deploy". Attends le build (~1-2 min). Vercel donne l'URL xxx.vercel.app.
(Alternative CLI : vercel --prod depuis le dossier lié.)
Étape 6 — Smoke-test du site live (tu le fais)
- Toutes les pages chargent (accueil + internes), pas de 404.
- Les images s'affichent, le responsive tient (déjà validé par
responsive-qa). - Le formulaire envoie vraiment : remplis-le → vérifie la réception des 2 emails. Si erreur → Vercel → projet → Logs (et logs Resend).
- Vérifie que
/api/formrépond (pas de 404 sur l'endpoint).
Étape 7 — Boucle auto
Explique au user : désormais, chaque git push sur la branche principale redéploie automatiquement, et chaque PR/branche a une URL de preview. Plus rien à faire à la main pour publier une modif.
Garde-fous
- Jamais de secret dans le repo : tout en variables d'environnement Vercel.
- Ne déploie pas un build qui échoue en local.
- Redéploie après toute modif de variable d'environnement.
trash, jamaisrm -rf.
Références
references/import-projet.md— import du repo + OAuth GitHub, pas-à-pas (libellés exacts)references/env-vars.md— quelles variables, manuel + CLI, piège du redéploiementreferences/troubleshooting.md— erreurs de déploiement courantes + solutions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

