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 ## Setup locally
#### Clone this repository #### Clone this repository
``` ```
git clone https://github.com/rajarsheechatterjee/lnreader-extensions.git git clone https://github.com/rajarsheechatterjee/lnreader-extensions.git
``` ```
#### Install dependencies #### Install dependencies
``` ```
npm install npm install
``` ```
#### Start the server #### Start the server
``` ```
npm start npm start
``` ```
### Currently supported sources ### 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", "version": "1.0.0",
"description": "Backend for LNReader", "description": "Extensions for LNReader",
"main": "server.js", "main": "index.js",
"scripts": { "scripts": {
"start": "node server", "start": "node index.js",
"server": "nodemon server" "server": "nodemon index.js"
}, },
"author": "", "author": "Rajarshee Chatterjee",
"license": "ISC", "license": "MIT",
"dependencies": { "dependencies": {
"cheerio": "^1.0.0-rc.5", "cheerio": "^1.0.0-rc.5",
"express": "^4.17.1", "express": "^4.17.1",
+15
View File
@@ -0,0 +1,15 @@
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
]
}