diff --git a/netlify.toml b/netlify.toml index dad42ca..70955f4 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] functions = "netlify/functions/" - command = "cd ./netlify/functions/ && npm install && cd ../ && npm install" \ No newline at end of file + command = "cd ./netlify/functions/ && npm install && cd ../ && cd ./public && npm install" \ No newline at end of file diff --git a/netlify/functions/handleMetadata.js b/netlify/functions/handleMetadata.js index 18cc7a7..2db92d7 100644 --- a/netlify/functions/handleMetadata.js +++ b/netlify/functions/handleMetadata.js @@ -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) {