Commit bd9fc776 authored by Eric Betts's avatar Eric Betts

fix plugin

parent 9faf6a60
......@@ -10,7 +10,8 @@ module.exports = {
fs.writeFileSync(`${FUNCTIONS_DIST}/.env`, kvs.join('\n'));
console.log(`Wrote ${kvs.length} envs to ${FUNCTIONS_DIST}/.env`);
},
onPostBuild: () => {
onPostBuild: ({ constants }) => {
const { FUNCTIONS_DIST, FUNCTIONS_SRC } = constants;
console.log('Hello world from onPostBuild event!')
console.log('functions dist', fs.readdirSync(FUNCTIONS_DIST));
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment