-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
53 lines (44 loc) · 1.22 KB
/
netlify.toml
File metadata and controls
53 lines (44 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[build]
publish = "dist/"
command = "sed -i \"s|ALLOWED_URL|${SITE_URL}|g\" netlify.toml && yarn && yarn build"
functions = "functions"
environment = { SITE_URL = "https://audioxide.com", API_URL = "https://api.audioxide.com" }
[[plugins]]
package = "/plugins/netlify-plugin-cache-audioxide-data"
[[plugins]]
package = "/plugins/netlify-plugin-trigger-website-rebuild"
[[redirects]]
from = "/search"
to = "/.netlify/functions/search"
query = {term = ":term"}
status = 200
force = true
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "ALLOWED_URL"
[[headers]]
for = "/*.json"
[headers.values]
Content-Type = "application/json; charset=UTF-8"
Vary = "Origin"
[[headers]]
for = "/**/*.json"
[headers.values]
Content-Type = "application/json; charset=UTF-8"
Vary = "Origin"
[[headers]]
for = "/feed/*"
[headers.values]
Content-Type = "application/rss+xml; charset=UTF-8"
Vary = "Origin"
[[headers]]
for = "/images/**/*.jpg"
[headers.values]
Content-Type = "image/jpeg"
Vary = "Origin"
[[headers]]
for = "/images/**/*.png"
[headers.values]
Content-Type = "image/png"
Vary = "Origin"