UNPKG

heroku-ssl-redirect

Version:

Redirect users to the SSL version of your app. For ExpressJS running on Heroku

5 lines (4 loc) 294 B
import { Request, Response, NextFunction } from "express"; declare type Environment = "production" | "development" | "other"; declare const sslRedirect: (environments?: Environment[], status?: 301 | 302) => (req: Request, res: Response, next: NextFunction) => void; export default sslRedirect;