Skip to content

Commit

Permalink
feat : Changed from Heroku to vercel (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalCodes authored Aug 29, 2022
1 parent 5c67328 commit 0348b1a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion server/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.env
.env
.vercel
12 changes: 12 additions & 0 deletions server/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],


"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}
4 changes: 2 additions & 2 deletions src/service/MilanApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import "react-toastify/dist/ReactToastify.css";

// toast.configure();

const apiURL = ["https://milan-jwoc.herokuapp.com", "http://localhost:5000"];
const API = apiURL[0]; //! Push changes in Heroku Server for Contact_Us route
const apiURL = ["https://milan-jwoc.herokuapp.com", "http://localhost:5000", "https://milan-server.vercel.app"];
const API = apiURL[2]; //! Push changes in Heroku Server for Contact_Us route

const User_Log = `${API}/user/login`;
const User_Reg = `${API}/user/register`;
Expand Down

1 comment on commit 0348b1a

@vercel
Copy link

@vercel vercel bot commented on 0348b1a Aug 29, 2022

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:

milan – ./

milan-iamtamal.vercel.app
milan-git-main-iamtamal.vercel.app
milaan.vercel.app

Please sign in to comment.