Browse Source

Hack to make Vercel include view in build

master
Luke Childs 2 years ago
parent
commit
d8008b46f6
  1. 1
      .gitignore
  2. 1
      api/index.js
  3. 18
      vercel.json

1
.gitignore

@ -70,3 +70,4 @@ Icon
Network Trash Folder Network Trash Folder
Temporary Items Temporary Items
.apdisk .apdisk
.vercel

1
api/index.js

@ -0,0 +1 @@
require('../index.js')

18
vercel.json

@ -1,14 +1,8 @@
{ {
"builds": [ "rewrites": [{ "source": "/(.*)", "destination": "/api" }],
{ "functions": {
"src": "index.js", "api/index.js": {
"use": "@vercel/node" "includeFiles": "views/*"
} }
], }
"routes": [ }
{
"src": "/(.*)",
"dest": "index.js"
}
]
}
Loading…
Cancel
Save