I’d recommend using the config/environment.js file for any constants/config settings. You can add arbitrary properties and access them from any of your files by importing the file.
I don’t know how “Ember-y” this is, but, plain and simple, you can still use javascript globals (window is the global object, so globals are actually properties on the window object, but I digress)
window.SOME_CONSTANT = 'localhost'
Exactly where you put this code? Perhaps right in config/environment.js as dnegstad suggested, or, config/constants.js and then do import 'constants' in environment.js I am guessing that import style works, you might need to follow the ‘happy path’ and do import module from ‘file’