Skip to content

Commit fd37929

Browse files
committed
Bug fix for backend connectivity
1 parent 20edd71 commit fd37929

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

backend/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dotenv.config();
1313
connectDB();
1414

1515
const app = express();
16-
const PORT = process.env.PORT || 5050;
16+
const PORT = process.env.PORT || 5000;
1717

1818
// Middleware
1919
app.use(cors());

frontend/src/lib/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// API utility functions for connecting frontend to backend
22

3-
const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:5050/api';
3+
const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || 'https://glow-backend-v4-0-0.onrender.com/api';
44

55
// Generic API call function
66
async function apiCall(endpoint, options = {}) {

0 commit comments

Comments
 (0)