Skip to content

Commit

Permalink
add Url
Browse files Browse the repository at this point in the history
  • Loading branch information
chofor-cliford committed Jan 29, 2023
1 parent 3883e56 commit 1578c5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import express from 'express';
dotenv.config();

const configuration = new Configuration({
apiKey: process.env.OPENAPI_API_KEY,
apiKey: process.env.OPENAI_API_KEY,
});

const openai = new OpenAIApi(configuration);
Expand Down Expand Up @@ -41,4 +41,6 @@ app.post('/', async (req, res) => {
}
})

app.listen(process.env.PORT || 5000, () => console.log(`Server connected on http://localhost:5000`));
app.listen(process.env.PORT || 5000, () =>
console.log(`Server connected on https://cea-ai.onrender.com`)
);

0 comments on commit 1578c5f

Please sign in to comment.