Example showing how to redirect using has

Check:

  1. next.config.js
  2. api/redirect-helper.js