Create vercel.json

This commit is contained in:
Rajarshee Chatterjee
2021-04-29 14:21:31 +05:30
parent ad791cfd13
commit cfd31bea02
4 changed files with 32 additions and 9 deletions
+10 -2
View File
@@ -5,20 +5,28 @@ This repository contains a REST API for [LNReader](https://github.com/rajarsheec
## Setup locally
#### Clone this repository
```
git clone https://github.com/rajarsheechatterjee/lnreader-extensions.git
```
#### Install dependencies
```
npm install
```
#### Start the server
```
npm start
```
### Currently supported sources
- BoxNovel
- ReadLightNovel
- BoxNovel
- ReadLightNovel
- FastNovel
- ReadNovelFull
- MTLNovel
- NovelHall
View File
+7 -7
View File
@@ -1,14 +1,14 @@
{
"name": "lnreader-backend",
"name": "lnreader-extensions",
"version": "1.0.0",
"description": "Backend for LNReader",
"main": "server.js",
"description": "Extensions for LNReader",
"main": "index.js",
"scripts": {
"start": "node server",
"server": "nodemon server"
"start": "node index.js",
"server": "nodemon index.js"
},
"author": "",
"license": "ISC",
"author": "Rajarshee Chatterjee",
"license": "MIT",
"dependencies": {
"cheerio": "^1.0.0-rc.5",
"express": "^4.17.1",
+15
View File
@@ -0,0 +1,15 @@
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
]
}