Skip to content

Commit

Permalink
✨ Add vercel config and support for serverless functions
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Apr 12, 2021
1 parent 53434f2 commit 6360f99
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../build/server').init()
14 changes: 14 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"routes": [
{ "handle": "filesystem" },
{ "src": "/(.*)", "dest": "/api/index.js" }
],
"functions": {
"api/index.js": {
"includeFiles": "build/**"
}
},
"github": {
"enabled": false
}
}

0 comments on commit 6360f99

Please sign in to comment.