use app version as the build id

This commit is contained in:
keyan 2021-10-05 12:28:22 -07:00
parent a226bac25d
commit 3e70636df2
1 changed files with 4 additions and 0 deletions

View File

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