llms.txt for Next.js
Add an AI-readable llms.txt file to a Next.js app.
- Generate. Use your production URL or sitemap.
- Save. Add the file to
public/llms.txt. - Deploy. Push your app and confirm the file is served from the root.
- Validate. Test
https://yourdomain.com/llms.txt.
my-next-app/
app/
public/
llms.txtCreate your llms.txt
Generate a Next.js llms.txt from your deployed sitemap, then copy it into public/llms.txt.
Open the generator