Check for production env

The redirects extension is very slow in development because of missing
images (etc..)