File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- MONGO_URL = " mongodb+srv://sandeeprudola10:[email protected] /?retryWrites=true&w=majority&appName=Cluster0" 1+ MONGO_URL = " mongodb+srv://sandeeprudola10:[email protected] /?retryWrites=true&w=majority&appName=Cluster0" 2+ PORT = 3000
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ const cors=require("cors");
33const rootRouter = require ( "./routes/index" ) ;
44
55const app = express ( ) ;
6-
76app . use ( cors ( ) ) ;
87app . use ( express . json ( ) )
8+ const PORT = process . env . PORT || 3000 ;
99app . use ( '/api/v1' , rootRouter ) ;
10- app . listen ( 3000 , ( ) => {
11- console . log ( " Server running on port 3000" ) ;
12- } ) ;
10+ app . listen ( PORT , ( ) => {
11+ console . log ( ` Server started on port ${ PORT } ` ) ;
12+ } ) ;
Original file line number Diff line number Diff line change 1- VITE_BACKEND_URL = https://paytm-coral-two.vercel .app
1+ VITE_BACKEND_URL = https://paytm-backend-production-04d3.up.railway .app
You can’t perform that action at this time.
0 commit comments