2018-05-27 17:45:26 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
2018-05-29 21:08:22 +00:00
|
|
|
s3Bucket: process.env.DEPLOY_BUCKET,
|
|
|
|
cloudFrontId: process.env.CLOUD_FRONT_ID,
|
2018-05-27 17:45:26 +00:00
|
|
|
deployFrom: path.resolve(__dirname, 'build'),
|
|
|
|
paths: [
|
|
|
|
{
|
|
|
|
match: /^service-worker.js/,
|
|
|
|
CacheControl: 'max-age=0'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
match: /^(js|css|icons-\w{8})/,
|
|
|
|
CacheControl: 'public, max-age=31536000'
|
|
|
|
},
|
|
|
|
{ // Default config. MUST BE LAST
|
|
|
|
match: /./,
|
|
|
|
CacheControl: 'public, max-age=96400'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|