cms/app-client/config/environment.js
changeset 339 766af1228b05
parent 319 78990a8a069b
child 394 48458e099b05
equal deleted inserted replaced
338:4a3899b6a7ed 339:766af1228b05
    12                 // Here you can enable experimental features on an ember canary build
    12                 // Here you can enable experimental features on an ember canary build
    13                 // e.g. 'with-controller': true
    13                 // e.g. 'with-controller': true
    14             }
    14             }
    15         },
    15         },
    16         APP: {
    16         APP: {
    17             baseStatic: ''
    17             backRootURL: '/corpus/',
    18             // Here you can pass flags/options to your application instance
    18             // Here you can pass flags/options to your application instance
    19             // when it is created
    19             // when it is created
    20         }
    20         }
    21     };
    21     };
    22     if (environment === 'development') {
    22     if (environment === 'development') {
    23         ENV.APP.baseStatic = '';
       
    24         ENV.contentSecurityPolicy = {
    23         ENV.contentSecurityPolicy = {
    25             'default-src': "'none'",
    24             'default-src': "'none'",
    26             'script-src': "'self' *",
    25             'script-src': "'self' *",
    27             'font-src': "'self'",
    26             'font-src': "'self'",
    28             'connect-src': "'self' *",
    27             'connect-src': "'self' *",
    35         ENV.rootURL = '/';
    34         ENV.rootURL = '/';
    36         ENV.locationType = 'none';
    35         ENV.locationType = 'none';
    37         ENV.APP.LOG_ACTIVE_GENERATION = false;
    36         ENV.APP.LOG_ACTIVE_GENERATION = false;
    38         ENV.APP.LOG_VIEW_LOOKUPS = false;
    37         ENV.APP.LOG_VIEW_LOOKUPS = false;
    39         ENV.APP.rootElement = '#ember-testing';
    38         ENV.APP.rootElement = '#ember-testing';
       
    39         ENV.APP.backRootURL = '/';
    40     }
    40     }
       
    41 
    41     if (environment === 'production') {
    42     if (environment === 'production') {
    42         ENV.APP.baseStatic = '/modules/corpus/app-client/';
    43         ENV.rootURL = '/corpus-app/';
       
    44         ENV.APP.backRootURL = '/corpus-back/';
    43     }
    45     }
       
    46 
    44     return ENV;
    47     return ENV;
    45 };
    48 };