Skip to content

Commit

Permalink
move index file
Browse files Browse the repository at this point in the history
  • Loading branch information
ridhlab committed Apr 1, 2023
1 parent 001a3e3 commit f20cc07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/index.js → index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "/"
}
]
}

1 comment on commit f20cc07

@vercel
Copy link

@vercel vercel bot commented on f20cc07 Apr 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

adzan-api – ./

adzan-api-git-master-ridlwan17.vercel.app
adzan-api-ten.vercel.app
adzan-api-ridlwan17.vercel.app

Please sign in to comment.