Skip to content

Commit

Permalink
Update port to use environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yashcrest committed Feb 2, 2024
1 parent e806075 commit 6e8da64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ const createCheckoutSession = async (req, res) => {
//Creating stripe checkout session
app.post("/checkout", createCheckoutSession);

const port = 4000;
const port = process.env.PORT || 4000;
app.listen(port, () => console.log(`Server running on port ${port}`));

0 comments on commit 6e8da64

Please sign in to comment.