2
2
3
3
module . exports = function ( deployTarget ) {
4
4
var ENV = {
5
- build : { } ,
5
+ build : {
6
+ environment : 'production'
7
+ } ,
6
8
pipeline : {
7
9
// This setting runs the ember-cli-deploy activation hooks on every deploy
8
10
// which is necessary in order to run ember-cli-deploy-cloudfront.
@@ -14,7 +16,8 @@ module.exports = function(deployTarget) {
14
16
s3 : {
15
17
accessKeyId : process . env . AWS_KEY ,
16
18
secretAccessKey : process . env . AWS_SECRET ,
17
- filePattern : "*"
19
+ filePattern : "*" ,
20
+ cacheControl : 'max-age=0, no-cache, public'
18
21
} ,
19
22
cloudfront : {
20
23
accessKeyId : process . env . AWS_KEY ,
@@ -27,20 +30,23 @@ module.exports = function(deployTarget) {
27
30
ENV . s3 . bucket = process . env . DEVELOPMENT_BUCKET ;
28
31
ENV . s3 . region = process . env . DEVELOPMENT_REGION ;
29
32
ENV . cloudfront . distribution = process . env . DEVELOPMENT_DISTRIBUTION ;
33
+ ENV . pipeline . activateOnDeploy = false ;
30
34
}
31
35
32
36
if ( deployTarget === 'staging' ) {
33
37
ENV . build . environment = 'production' ;
34
38
ENV . s3 . bucket = process . env . STAGING_BUCKET ;
35
39
ENV . s3 . region = process . env . STAGING_REGION ;
36
40
ENV . cloudfront . distribution = process . env . STAGING_DISTRIBUTION ;
41
+ ENV . pipeline . activateOnDeploy = false ;
37
42
}
38
43
39
44
if ( deployTarget === 'production' ) {
40
45
ENV . build . environment = 'production' ;
41
46
ENV . s3 . bucket = process . env . PRODUCTION_BUCKET ;
42
47
ENV . s3 . region = process . env . PRODUCTION_REGION ;
43
48
ENV . cloudfront . distribution = process . env . PRODUCTION_DISTRIBUTION ;
49
+ ENV . pipeline . activateOnDeploy = false ;
44
50
}
45
51
46
52
// Note: if you need to build some configuration asynchronously, you can return
0 commit comments