KnownByLLM

Setup guide · 3 minutes · Beginner

Install llms.txt on Netlify

On Netlify, anything in your publish directory at the project root becomes available at the corresponding URL. Adding <code>llms.txt</code> takes about three minutes.

01

Find your publish directory

  1. Open your project's netlify.toml or check the deploy settings in the Netlify dashboard.
  2. Look for the publish field. Common values: public, dist, build, _site (Jekyll), out (Next.js export), .next (Next.js).
  3. If using a static site generator: place llms.txt in the public/ or static/ directory of your source — the generator will copy it to the publish directory.

02

Add the file

  1. Place your llms.txt at the root of the publish directory (or the static//public/ source directory).
  2. Commit and push to your Git repository.
  3. Netlify will rebuild and deploy automatically.
  4. Visit https://yoursite.com/llms.txt after the build completes.

!!

Common pitfalls

  • Wrong directory: Files placed in src/ or other source-only directories won't be included in the build output unless your generator copies them. Always use the static asset directory.
  • Build cache: If your file appears in the repo but not at the URL, trigger a clean build from Netlify dashboard's Deploys → Trigger deploy → Clear cache and deploy.