Skip to content

Commit c648528

Browse files
author
amazon-meaisiah
committed
Fix race condition with config in asset uploader
1 parent 32385f6 commit c648528

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lambdas/static-asset-uploader/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ class State {
265265
klaw('./build')
266266
.on('data', (data) => {
267267
if (data.stats.isDirectory()) return
268+
// skip config - we generate that later
269+
if (!/build\/config\.js$/.test(data.path)) return
268270
if (this.event.RequestType === 'Create') {
269271
// always write everything on Creates
270272
console.log('pushing b/c Create', data.path)

0 commit comments

Comments
 (0)