chore: edge functions
This commit is contained in:
parent
76a50caaee
commit
7a3b40842c
16 changed files with 950 additions and 1346 deletions
21
netlify.toml
21
netlify.toml
|
@ -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"
|
||||
|
|
Reference in a new issue