Added production check to https switcher

Signed-off-by: Tom Wright <tom@inflatablecookie.com>