I would advise against different environments for the application and the client site. We should just tell the client side what the environment is:

```erb
<%= javascript_tag "MAS.env = '#{Rails.env}';" %>
```

`MAS.env` could possibly default to production so that the following is a special case?

```erb
<%= javascript_tag "MAS.env = '#{Rails.env}';" unless Rails.env.production? %>
```