Skip to content

Commit 90a1d37

Browse files
committed
chore: copy function to dist
1 parent d2eade1 commit 90a1d37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ module.exports = {
6565
})
6666
},
6767

68-
async onPostBuild({ netlifyConfig, utils: { cache } }) {
68+
async onPostBuild({ netlifyConfig, utils: { cache, run }, constants: { FUNCTIONS_DIST } }) {
69+
await run('cp', ['-v', join(FUNCTIONS_DIST, '_ipx.zip'), `${netlifyConfig.build.publish}/ipx.zip`])
6970
return saveCache({ cache, publish: netlifyConfig.build.publish })
7071
},
7172
onEnd() {

0 commit comments

Comments
 (0)