How to add an llms.txt file to your domain (Vercel, Netlify, Cloudflare)
The hosting-level walkthrough for serving an llms.txt file at the root of your domain on the three most common platforms.
Once your llms.txt is written, it needs to be served at https://yourdomain.com/llms.txt with the correct content type. Each host handles static files slightly differently — here's the exact path for the big three.
- A written llms.txt file
- Deploy access to your hosting platform
Step by step
- 01
Vercel: drop it in /public
Add the file to your project at public/llms.txt. Commit and push — Vercel serves anything in /public at the root. Verify at /llms.txt.
- 02
Netlify: drop it in the publish directory
For most setups that's /public, /dist or the root depending on framework. Confirm in netlify.toml under [build] → publish.
- 03
Cloudflare Pages: same as Vercel
Place llms.txt in your build output directory. For SvelteKit/Astro/Next that's the static directory; for plain HTML, the project root.
- 04
Set the correct Content-Type
Most hosts auto-serve .txt as text/plain. If yours doesn't, add a _headers file (Netlify/Cloudflare) or vercel.json with 'Content-Type: text/plain; charset=utf-8'.
- 05
Test with curl
Run: curl -I https://yourdomain.com/llms.txt. Confirm a 200 status and content-type: text/plain.
- 06
Reference it from sitemap.xml
Add a <url> entry for llms.txt so agentic crawlers find it via your sitemap.
Troubleshooting
We set up domains, email, SSL, security and integrations so nothing breaks.
Book a tech call