added a production flag to avoid using preveiw

Adds a production flag 
 
**Status**: *Opened for visibility*
 
**Reviewers**: @scalvert 
 
## Changes
- adds a production flag
- checks for `http` in the URL
 
## How to test-drive this PR
- try an existing suite of tests
- add a production flag. be sure the correct URL is used