Skip to main content

Sanity Add a Redirect

How to add a single redirect​

Open repo in VS Code​

In terminal:​

cd sanity npm run dev

In sanity > sanity.config.js​

Remove , 'redirect' from Line 22 Hit save

In browser​

Open http://localhost:3333

Click on Redirect (left sidebar)​

Add the new redirect and hit publish

In VS Code​

Undo the change on Line 22 Shut down terminal