feat: cloudflare -> netlify
This commit is contained in:
parent
a7e0b36d82
commit
a74ea3644d
41 changed files with 2021 additions and 2395 deletions
38
netlify.toml
Normal file
38
netlify.toml
Normal file
|
@ -0,0 +1,38 @@
|
|||
[build]
|
||||
command = "npm run build"
|
||||
publish = "dist"
|
||||
|
||||
[functions]
|
||||
directory = "functions"
|
||||
|
||||
[functions.mastodon]
|
||||
schedule = "*/15 * * * *"
|
||||
|
||||
[[redirects]]
|
||||
from = "/api/artist-import"
|
||||
to = "/.netlify/functions/artist-import"
|
||||
status = 200
|
||||
|
||||
[[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"
|
||||
status = 200
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/api/event"
|
||||
to = "https://plausible.io/api/event"
|
||||
status = 200
|
||||
force = true
|
Reference in a new issue