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:
12
netlify.toml
12
netlify.toml
@@ -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 = "/*"
|
||||
|
||||
Reference in New Issue
Block a user