Setup guide · 3 minutes · Beginner
Install llms.txt on Vercel
Vercel serves anything in <code>/public</code> at the corresponding root URL. Adding <code>llms.txt</code> is a single file commit.
01
Add the file
- In your project, place
llms.txtdirectly inside thepublic/folder. - Commit and push to your Git repository.
- Vercel will detect the change and deploy automatically.
- Visit
https://yoursite.com/llms.txtafter deploy completes.
02
Next.js App Router alternative
- If you'd rather generate
llms.txtdynamically, createapp/llms.txt/route.ts. - Export a GET handler that returns your llms.txt body with
Content-Type: text/markdown. - Useful if your site has dynamic content that should reflect in the file (e.g. blog posts, products).
!!
Common pitfalls
- App folder vs public folder: Don't put
llms.txtinsideapp/— it must go inpublic/for static serving. The App Router file approach is only needed if you want dynamic generation. - Old caches: Vercel's edge cache may serve a stale version. Use Deployments → Redeploy without cache to force-refresh.