Spaces:
Sleeping
Sleeping
Update index.js
Browse files
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 =
|
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(
|