mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
aba884080f
no issue - bump green (patch) deps - bump ember-fetch - bump ember-simple-auth - bump broccoli-asset-rev - bump ember-ajax - bump yarn.lock sub-dependencies Only a partial dependency upgrade but fixes production build error that was introduced in https://github.com/TryGhost/Ghost-Admin/pull/1044 so merging as-is.
20 lines
744 B
JavaScript
20 lines
744 B
JavaScript
import Configuration from 'ember-simple-auth/configuration';
|
|
import ENV from '../config/environment';
|
|
import ghostPaths from '../utils/ghost-paths';
|
|
import setupSession from 'ember-simple-auth/initializers/setup-session';
|
|
import setupSessionRestoration from 'ember-simple-auth/initializers/setup-session-restoration';
|
|
import setupSessionService from 'ember-simple-auth/initializers/setup-session-service';
|
|
|
|
export default {
|
|
name: 'ember-simple-auth',
|
|
initialize(registry) {
|
|
let config = ENV['ember-simple-auth'] || {};
|
|
config.rootURL = ghostPaths().adminRoot;
|
|
Configuration.load(config);
|
|
|
|
setupSession(registry);
|
|
setupSessionService(registry);
|
|
setupSessionRestoration(registry);
|
|
}
|
|
};
|