remove logging

This commit is contained in:
keyan 2023-06-01 20:21:54 -05:00
parent d65763ab27
commit e1f59763ea
1 changed files with 0 additions and 15 deletions

View File

@ -14,21 +14,6 @@ const corsHeaders = [
}
]
console.log([
{
urlPattern: /\/_next\/data\/.+\/.+\.json$/i,
handler: 'NetworkFirst',
options: {
cacheName: 'next-data',
expiration: {
maxEntries: 32,
maxAgeSeconds: 24 * 60 * 60 // 24 hours
}
}
},
...defaultRuntimeCaching.filter((c) => c.options.cacheName !== 'next-data')
])
// XXX this fragile ... eb could change the version label ... but it works for now
const commitHash = isProd
? Object.keys(require('/opt/elasticbeanstalk/deployment/app_version_manifest.json').RuntimeSources['stacker.news'])[0].match(/^app-(.+)-/)[1] // eslint-disable-line