chore: edge functions

This commit is contained in:
Cory Dransfeldt 2024-12-03 04:50:43 -08:00
parent 76a50caaee
commit 7a3b40842c
No known key found for this signature in database
16 changed files with 950 additions and 1346 deletions

View file

@ -1,6 +1,7 @@
[build]
command = "npm run build"
publish = "dist"
edge_functions = "edge-functions"
[functions]
directory = "functions"
@ -8,24 +9,20 @@ directory = "functions"
[functions.mastodon]
schedule = "*/15 * * * *"
[[edge_functions]]
function = "scrobble"
path = "/api/scrobble"
[[edge_functions]]
function = "search"
path = "/api/search"
[[redirects]]
from = "/api/artist-import"
to = "/.netlify/functions/artist-import"
status = 200
query = "*"
[[redirects]]
from = "/api/scrobble"
to = "/.netlify/functions/scrobble"
status = 200
query = "*"
[[redirects]]
from = "/api/search"
to = "/.netlify/functions/search"
status = 200
query = "*"
[[redirects]]
from = "/scripts/util.js"
to = "https://plausible.io/js/plausible.outbound-links.tagged-events.js"