Skip to content

Commit f9009b8

Browse files
authored
Make sure vendored assets are cached forever (#550)
* Make sure vendored assets are cached forever * Change shell
1 parent 3951ff8 commit f9009b8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

scripts/build-shells.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ files.forEach(file => {
2323
const vendorPath = last(vendor[0].split('build'));
2424

2525
const dynamic = `
26-
window['${libraryName}Deps'] = [
27-
"${vendorPath}",
28-
]
26+
window['${libraryName}Deps'] = ["${vendorPath}"]
2927
3028
window['${libraryName}Loader'] = function() {
3129
return ${fs.readFileSync(file).toString()}

scripts/upload-assets.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ async function uploadAssets() {
6666

6767
let manifest = {};
6868

69-
const key = (fileName) => {
70-
return path.join('next-integrations', fileName)
69+
const key = fileName => {
70+
return path.join('next-integrations', fileName);
7171
};
7272

7373
const putObject = async (
@@ -101,7 +101,7 @@ async function uploadAssets() {
101101
const isVendor = fileName.includes('vendor');
102102

103103
if (isVendor) {
104-
return putObject(fileName);
104+
return putObject(fileName, true);
105105
}
106106

107107
const f = fileName.split('/');

0 commit comments

Comments
 (0)