node-heroku-ssl-redirect
Redirect users to the SSL version of your app. For ExpressJS running on Heroku.
This module works only with import, don't try to use require.
Installation
yarn add heroku-ssl-redirect
Usage
;;const app = ; // enable ssl redirectapp; app; app;
Environments
Default environment is production, if you need enable redirect with other environment you need send an array argument.
app;
HTTP status code
By default a 302 will be used to redirect. A 301 can be configured with the second argument.
app;