« All deprecation guides
Deprecation Guide for Base URL
until: 3.0.0
id: base-url
The usage of baseURL
setting in config/environments.js
has been deprecated in favor of using
an explicit rootURL
. A detailed explanation of the problem and the migration path can be found in
this blog post.
Migration for pre-2.7 applications is:
- Update
config/environment.js
to remove reference tobaseURL
and update torootURL
. - Update
app/index.html
to add{{rootURL}}
a the beginning of all assets that are loaded. - Update the
app/router.js
to passrootURL
to the subclass ofEmber.Router
being created.
More detailed descriptions of this migration can be found on the blog: here