301 redirect service — deployable on both Vercel and Heroku.
Click the button below or run vercel in the project root.
The vercel.json already routes all requests to api/index.js.
heroku create <app-name>
git push heroku mainHeroku will use Procfile to start server.js, which wraps the same redirect
handler (api/index.js) in a plain Node.js HTTP server that listens on
process.env.PORT.
Edit api/index.js to change the redirect rules.