Skip to content

Commit

Permalink
Add Now v2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
emedvedev committed Oct 27, 2019
1 parent a08fb6c commit e9df0c1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
23 changes: 23 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "slackin-extended",
"version": 2,
"env": {
"SLACK_SUBDOMAIN": "@slack-subdomain",
"SLACK_API_TOKEN": "@slack-api-token"
},
"builds": [
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": "assets" }
},
{
"src": "bin/slackin",
"use": "@now/node-server"
}
],
"routes": [
{ "src": "/assets/(.*)", "dest": "$1" },
{ "src": "/(.*)", "dest": "bin/slackin" }
]
}
15 changes: 0 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,5 @@
"eslintConfig": {
"root": true,
"extends": "airbnb-base"
},
"now": {
"name": "slackin",
"type": "npm",
"files": [
"assets",
"bin",
"lib",
"scss",
"views"
],
"env": [
"SLACK_SUBDOMAIN",
"SLACK_API_TOKEN"
]
}
}

0 comments on commit e9df0c1

Please sign in to comment.