KnownByLLM

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

  1. In your project, place llms.txt directly inside the public/ folder.
  2. Commit and push to your Git repository.
  3. Vercel will detect the change and deploy automatically.
  4. Visit https://yoursite.com/llms.txt after deploy completes.

02

Next.js App Router alternative

  1. If you'd rather generate llms.txt dynamically, create app/llms.txt/route.ts.
  2. Export a GET handler that returns your llms.txt body with Content-Type: text/markdown.
  3. 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.txt inside app/ — it must go in public/ 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.