INNER CODE UNIT · JavaScript
withoutAPIKey
jamstack-cms/jamstack-cms · createBaseConfig.js:18
const withoutAPIKey = items.filter(item => {
return !(item.includes('aws_appsync_apiKey'))
})
let newJson = withoutAPIKey.join(',')
newJson = JSON.parse(newJson)
fs.writeFile('jamstack-config.js', newJson, 'utf8', function(err, success) {
if (err) {
throw err
}
console.log('JAMstack config successfully created!')
})
})
}
createbaseConfig()