Removal of node-fetch, updates all functions accordingly, use of custom chromium driver for netlify support, plus update of all older packages

This commit is contained in:
Alicia Sykes
2023-07-22 15:18:28 +01:00
parent 38fb1a1d4b
commit dd0be7ed05
10 changed files with 713 additions and 808 deletions

View File

@@ -24,11 +24,6 @@
STATUSKIT_SUPPORT_CONTACT_LINK = "https://github.com/lissy93/web-check"
# Redirect the Node endpoints to serverless functions
[[redirects]]
from = "/api"
to = "/.netlify/functions/web-check"
status = 301
force = true
[[redirects]]
from = "/find-url-ip"
to = "/.netlify/functions/find-url-ip"
@@ -134,7 +129,12 @@
to = "/.netlify/functions/screenshot"
status = 301
force = true
[[plugins]]
package = "netlify-plugin-chromium"
[plugins.inputs]
packageManager = ["yarn"]
# For router history mode, ensure pages land on index
[[redirects]]
from = "/*"