hprasath commited on
Commit
b06eac5
1 Parent(s): 422f426

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -8,7 +8,7 @@ app.use(express.urlencoded({ extended: true }));
8
  const port = 7860;
9
 
10
  app.use(morgan("combined"));
11
- const apiUrl = "http://localhost:8000";
12
  async function scrapeWebPage(url) {
13
  try {
14
  const response = await axios.get(
 
8
  const port = 7860;
9
 
10
  app.use(morgan("combined"));
11
+ const apiUrl = process.env.API_URL;
12
  async function scrapeWebPage(url) {
13
  try {
14
  const response = await axios.get(