Skip to content

Commit 68b5662

Browse files
fix: correctly resolve zip path (#744)
* fix: correctly resolve zip path * chore: release 4.0.0-beta.4 Release-as: 4.0.0-beta.4 Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 887b90a commit 68b5662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ module.exports = {
7171
})
7272
},
7373

74-
async onPostBuild({ netlifyConfig, utils: { cache }, constants }) {
74+
async onPostBuild({ netlifyConfig, utils: { cache }, constants: { FUNCTIONS_DIST } }) {
7575
await saveCache({ cache, publish: netlifyConfig.build.publish })
76-
await checkZipSize(join(process.cwd(), constants.FUNCTIONS_DIST, `${ODB_FUNCTION_NAME}.zip`))
76+
await checkZipSize(join(FUNCTIONS_DIST, `${ODB_FUNCTION_NAME}.zip`))
7777
},
7878
onEnd() {
7979
logBetaMessage()

0 commit comments

Comments
 (0)