llms.txt for Next.js

Add an AI-readable llms.txt file to a Next.js app.

  1. Generate. Use your production URL or sitemap.
  2. Save. Add the file to public/llms.txt.
  3. Deploy. Push your app and confirm the file is served from the root.
  4. Validate. Test https://yourdomain.com/llms.txt.
my-next-app/
  app/
  public/
    llms.txt

Create your llms.txt

Generate a Next.js llms.txt from your deployed sitemap, then copy it into public/llms.txt.

Open the generator