added npm install to netlify.toml and added node-fetch back in

pull/73/head
Huda Joad 2023-11-24 18:25:26 +03:00
rodzic bfc24807a8
commit 72c94b6de5
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1,2 +1,3 @@
[build]
functions = "netlify/functions/"
functions = "netlify/functions/"
command = "npm install"

Wyświetl plik

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