use app version as the build id

This commit is contained in:
keyan 2021-10-05 12:37:08 -07:00
parent 3e70636df2
commit 4a81da6d13
1 changed files with 4 additions and 2 deletions

View File

@ -1,9 +1,11 @@
const { withPlausibleProxy } = require('next-plausible')
const { VersionLabel } = require('/opt/elasticbeanstalk/deployment/app_version_manifest.json') // eslint-disable-line
const data = require('/opt/elasticbeanstalk/deployment/app_version_manifest.json') // eslint-disable-line
console.log(data)
module.exports = withPlausibleProxy()({
generateBuildId: async () => {
return VersionLabel
return data.VersionLabel
},
async rewrites () {
return [