Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Apr 1, 2023
1 parent bc65d8e commit 4579191
Show file tree
Hide file tree
Showing 3 changed files with 9,546 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const http = require('http');
const Waline = require('@waline/vercel');
const serverless = require('serverless-http');

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


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

0 comments on commit 4579191

Please sign in to comment.