Skip to content

Commit

Permalink
chore: add env config for waline
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming authored Feb 6, 2024
1 parent 5efb1f1 commit 5c06c36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netlify/functions/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ const Waline = require('@waline/vercel');
const serverless = require('serverless-http');

const app = Waline({
env: 'netlify',
async postSave(comment) {
// do what ever you want after save comment
},
});

module.exports.handler = serverless(http.createServer(app));
module.exports.handler = serverless(http.createServer(app));

0 comments on commit 5c06c36

Please sign in to comment.