agentleFS
davision0102davision0102/fabrik/.agents/skills/deploy/SKILL.md

deploy

Skill3 starsChanged 2 days agoMITView on GitHub

Mettre le site en ligne (GitHub Pages, Vercel, Netlify, Cloudflare Pages) et dépanner un déploiement. À utiliser quand on demande de publier, héberger, déployer ou partager le site par un lien.

  • Reads credentials

158 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pm-discovery, qa-phase and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ww-w-aiSkill

    pm-discovery

    PM Agent Team - Automated product discovery, strategy, and PRD generation. Runs PM analysis workflow to produce comprehensive PRD before PDCA Plan phase.

    Also in 3 projects that use this

  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • +10 more from ww-w-ai

The file

Files
SKILL.md

Déployer le site

Le build produit un site statique dans dist/ (npm run build). Toutes les pages sont gérées côté navigateur par TanStack Router : l'hébergeur doit donc renvoyer index.html pour toute adresse inconnue, sinon un lien direct vers /ui donne une erreur 404.

GitHub Pages (déjà configuré)

Le workflow .github/workflows/deploy.yml publie le site à chaque push sur main.

  1. Une seule fois, sur GitHub : Settings → Pages → Source : GitHub Actions.
  2. Pousser sur main. L'adresse sera https://<utilisateur>.github.io/<depot>/.

Le site vit dans un sous-dossier : le workflow passe BASE_PATH=/<depot>/ au build, Vite préfixe les fichiers et le routeur utilise import.meta.env.BASE_URL. Le workflow copie aussi index.html en 404.html pour les liens directs.

Après un renommage du dépôt : mettre à jour les URL og:url et og:image dans index.html, et demoUrl dans src/config/site.ts.

Vercel, Netlify ou Cloudflare Pages

Importer le dépôt depuis leur interface : ils détectent Vite tout seuls (commande npm run build, dossier dist). Le site est servi à la racine, il n'y a pas de BASE_PATH à définir.

Pour les liens directs :

  • Vercel : créer vercel.json avec { "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] }.
  • Netlify : créer public/_redirects contenant /* /index.html 200.
  • Cloudflare Pages : rien à faire, le mode SPA est automatique.

Vérifier avant de publier

npm run build && npx vite preview

Pour simuler GitHub Pages : BASE_PATH=/mon-depot/ npm run build && BASE_PATH=/mon-depot/ npx vite preview, puis ouvrir http://localhost:4173/mon-depot/.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.