Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Apr 1, 2023
1 parent 4579191 commit 3cbbc22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

# Local Netlify folder
.netlify
2 changes: 2 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[functions]
directory = "netlify/functions/"
3 changes: 2 additions & 1 deletion index.js → netlify/functions/comment.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
process.env.DETA_RUNTIME = 'true';

const http = require('http');
const Waline = require('@waline/vercel');
const serverless = require('serverless-http');
Expand All @@ -8,5 +10,4 @@ const app = Waline({
},
});


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

0 comments on commit 3cbbc22

Please sign in to comment.