Skip to content

Commit

Permalink
Deploy script sets mime type and CORS headers for fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
bxjx committed Oct 15, 2012
1 parent 080de27 commit ec25147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ function cdnSync(cb){
container: container,
auth : { username: 'theglobalmail', apiKey: argv.key},
cdnEnabled: true,
pushOnBoot: true
pushOnBoot: true,
headers: { '\\.(eot|svg|ttf|woff)$': ['Access-Control-Allow-Origin: *'] }
});
mirror.mime.define({'application/octet-stream': ['woff']});
mirror.on('error', next);
mirror.on('end', function(err){
console.error(('Syncing ' + dir + ' to ' + container + ' OK').green)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"nopt": "~2.0.0",
"should": "~1.1.0",
"async": "~0.1.22",
"cloudfiles-mirror": "git://github.com/bxjx/cloudfiles-mirror.git#emit_end",
"cloudfiles-mirror": "git://github.com/bxjx/cloudfiles-mirror.git",
"colors": "~0.6.0-1",
"optimist": "~0.3.4"
},
Expand Down

0 comments on commit ec25147

Please sign in to comment.