next.config.js Options: rewrites | Next.js
Add rewrites to your Next.js app.