Skip to content

Commit

Permalink
Update build and start scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcrammer committed Apr 1, 2024
1 parent 2663905 commit 8d8c886
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ out
# Nuxt.js build / generate output
.nuxt
dist
api

# Gatsby files
.cache/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "service-authentication",
"version": "1.0.0",
"description": "",
"main": "app.js",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rimraf dist && babel src --out-dir dist --copy-files",
"start": "node dist/app.js",
"dev": "nodemon --exec babel-node src/app.js"
"build": "rimraf api && babel src --out-dir api --copy-files",
"start": "node api/index.js",
"dev": "nodemon --exec babel-node src/index.js"
},
"keywords": [],
"author": "",
Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
]
}

0 comments on commit 8d8c886

Please sign in to comment.