added node-fetch

pull/73/head
Huda Joad 2023-11-24 18:41:59 +03:00
rodzic feb3843e27
commit c29406a1c6
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,3 @@
[build]
functions = "netlify/functions/"
command = "cd ./netlify/functions/ && npm install && cd ../ && npm install"
command = "cd ./netlify/functions/ && npm install && cd ../ && cd ./public && npm install"

Wyświetl plik

@ -1,4 +1,5 @@
const https = require('https'); // Import for webscraping (fetchContentFromURL(url) function
const fetch = require('node-fetch').default;
// Placeholder function to fetch content from URL using a web scraping service
async function fetchContentFromURL(url) {