diff --git a/src/index.js b/index.js similarity index 89% rename from src/index.js rename to index.js index f563317..da6a356 100644 --- a/src/index.js +++ b/index.js @@ -2,7 +2,7 @@ require("dotenv").config(); const express = require("express"); const cors = require("cors"); -const routes = require("./routes"); +const routes = require("./src/routes"); const port = process.env.PORT || 3000; const server = express(); diff --git a/package.json b/package.json index 82b44fd..606ccda 100644 --- a/package.json +++ b/package.json @@ -2,15 +2,15 @@ "name": "adzan-api", "version": "1.0.0", "description": "", - "main": "src/index.js", + "main": "index.js", "repository": "https://github.com/ridhlab/adzan-api", "author": "Muhammad Ridwan", "private": "false", "license": "MIT", "scripts": { "build": "npm install", - "start": "node src/index.js", - "dev": "nodemon src/index.js", + "start": "node index.js", + "dev": "nodemon index.js", "scrape": "node src/scraper.js" }, "dependencies": { diff --git a/vercel.json b/vercel.json index a3dcec5..df47e78 100644 --- a/vercel.json +++ b/vercel.json @@ -2,14 +2,14 @@ "version": 2, "builds": [ { - "src": "./src/index.js", - "use": "@now/node" + "src": "./index.js", + "use": "@vercel/node" } ], "routes": [ { "src": "/(.*)", - "dest": "./src/index.js" + "dest": "/" } ] }