
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
ember-cli-subdomain
Advanced tools
A simple addon that adds subdomain detection to an Ember application
This simple add-on adds subdomain detection to an Ember application.
This add-on is configured via your applications config/environment.js file. Only one property is
used from your projects configuration:
subdomainMapping -- A javascript hash of subdomains you may want to map a unified, default value:The default subdomainMapping value is:
//config/environment.js
subdomainMapping: {
'': 'default',
'www': 'default'
}
The initialization of the add-on makes it available to the route and controller:
initialize: function(container, application) {
container.register('url-checker:main', urlChecker);
application.inject('route', 'urlChecker', 'url-checker:main');
application.inject('controller', 'urlChecker', 'url-checker:main');
}
Use the method subdomain of the injected urlChecker for your magics...
FAQs
A simple addon that adds subdomain detection to an Ember application
We found that ember-cli-subdomain demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.