Skip to content

Commit a99be8b

Browse files
committed
feat:
1 parent bdf15ed commit a99be8b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Backend/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ app.get("/", (req, res) => {
2424
app.listen(port, () => {
2525
console.log(`Server is running on port ${port}`);
2626
});
27+
28+
module.exports = app;

Backend/models/pgsql.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import env from "dotenv";
44
env.config();
55

66
const db = new pg.Client({
7-
user: process.env.REMOTE_DB_USER,
8-
host: process.env.REMOTE_DB_HOST,
9-
database: process.env.REMOTE_DB_NAME,
10-
password: process.env.REMOTE_DB_PASSWORD,
11-
port: process.env.REMOTE_DB_PORT,
7+
user: process.env.DB_USER,
8+
host: process.env.DB_HOST,
9+
database: process.env.DB_NAME,
10+
password: process.env.DB_PASSWORD,
11+
port: process.env.DB_PORT,
1212
});
1313

1414
db.connect();

vercel.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "version": 1, "rewrites": [{ "source": "/(.*)", "destination": "/Backend" }] }

0 commit comments

Comments
 (0)