1- /* eslint-env node */
21'use strict' ;
32
43module . exports = function ( environment ) {
@@ -68,7 +67,7 @@ module.exports = function(environment) {
6867 config : {
6968 key : 'Nz7hL2eY2yHzuIwUbExfDanbJp2q0IO0'
7069 }
71- } ,
70+ }
7271 ] ,
7372
7473 moment : {
@@ -77,7 +76,7 @@ module.exports = function(environment) {
7776
7877 pageTitle : {
7978 prepend : true ,
80- separator : " β "
79+ separator : ' β '
8180 } ,
8281
8382 sentry : {
@@ -113,39 +112,39 @@ module.exports = function(environment) {
113112 ENV . contentSecurityPolicy = {
114113 'default-src' : "'none'" ,
115114 'script-src' : [
116- "'self'" ,
115+ "'self'"
117116 ] ,
118117 // Allow fonts to be loaded from http://fonts.gstatic.com
119118 'font-src' : [
120119 "'self'" ,
121- " data:" ,
122- " https://fonts.gstatic.com" ,
123- " https://d3pgew4wbk2vb1.cloudfront.net" ,
124- " https://dawxes9syhrgg.cloudfront.net"
120+ ' data:' ,
121+ ' https://fonts.gstatic.com' ,
122+ ' https://d3pgew4wbk2vb1.cloudfront.net' ,
123+ ' https://dawxes9syhrgg.cloudfront.net'
125124 ] ,
126125 // Allow data (ajax/websocket) from api.lvh.me:4000
127126 'connect-src' : [
128127 "'self'" ,
129- " http://api.lvh.me:4000"
128+ ' http://api.lvh.me:4000'
130129 ] ,
131130 // Allow images from the origin itself (i.e. current domain), and data
132131 'img-src' : [
133132 "'self'" ,
134- " data:" ,
135- " https://d3pgew4wbk2vb1.cloudfront.net" ,
136- " https://dawxes9syhrgg.cloudfront.net" ,
137- " http://lorempixel.com" ,
138- " https://s3.amazonaws.com" ,
133+ ' data:' ,
134+ ' https://d3pgew4wbk2vb1.cloudfront.net' ,
135+ ' https://dawxes9syhrgg.cloudfront.net' ,
136+ ' http://lorempixel.com' ,
137+ ' https://s3.amazonaws.com'
139138 ] ,
140139 // Allow inline styles and loaded CSS from http://fonts.googleapis.com
141140 'style-src' : [
142141 "'self'" ,
143- "'unsafe-inline'" ,
142+ "'unsafe-inline'"
144143 ] ,
145144 // `media-src` will be omitted from policy
146145 // Browser will fallback to default-src for media resources (which is to deny, see above).
147146 'media-src' : null
148- }
147+ } ;
149148 }
150149
151150 if ( environment === 'remote-development' ) {
@@ -192,6 +191,8 @@ module.exports = function(environment) {
192191 // Testem prefers this...
193192 ENV . locationType = 'none' ;
194193
194+ ENV . APP . autoboot = false ;
195+
195196 // keep test console output quieter
196197 ENV . APP . LOG_ACTIVE_GENERATION = false ;
197198 ENV . APP . LOG_VIEW_LOOKUPS = false ;
@@ -229,9 +230,9 @@ module.exports = function(environment) {
229230 }
230231
231232 ENV [ 'ember-simple-auth-token' ] = {
232- serverTokenEndpoint : ENV . API_BASE_URL + ' /token' ,
233- serverTokenRefreshEndpoint : ENV . API_BASE_URL + ' /token/refresh' ,
234- refreshLeeway : 300 , // 5 minutes before expiry
233+ serverTokenEndpoint : ` ${ ENV . API_BASE_URL } /token` ,
234+ serverTokenRefreshEndpoint : ` ${ ENV . API_BASE_URL } /token/refresh` ,
235+ refreshLeeway : 300 // 5 minutes before expiry
235236 } ;
236237
237238 return ENV ;
0 commit comments