Robots.txt

5-15 minIntermediate

Sanity is a headless backend. Robots.txt lives in your Frontend (Next.js/Remix).

Easy Recommended

Frontend File

Static file.

1

Create File

1

Add robots.txt to your frontend's public/ folder

2

This is unrelated to Sanity itself

Verification Checklist

  • Check URL