mirror of
https://github.com/GuerillaStudio/now-playing
synced 2024-11-29 18:01:40 +00:00
43 lines
704 B
TOML
43 lines
704 B
TOML
[build]
|
|
publish = "public"
|
|
command = "hugo -b $URL"
|
|
[build.environment]
|
|
HUGO_VERSION = "0.124.1"
|
|
|
|
|
|
[context.production.environment]
|
|
HUGO_VERSION = "0.124.1"
|
|
HUGO_ENV = "production"
|
|
command = "hugo -b $URL"
|
|
|
|
[context.deploy-preview]
|
|
command = "hugo -b $DEPLOY_PRIME_URL"
|
|
|
|
[[headers]]
|
|
for = "/*"
|
|
[headers.values]
|
|
X-Frame-Options = "DENY"
|
|
X-XSS-Protection = "1; mode=block"
|
|
X-Content-Type-Options = "nosniff"
|
|
|
|
[[redirects]]
|
|
force = true
|
|
from = "/a"
|
|
to = "/"
|
|
|
|
# Old urls
|
|
|
|
[[redirects]]
|
|
force = true
|
|
from = "/musics"
|
|
to = "/"
|
|
|
|
[[redirects]]
|
|
force = true
|
|
from = "/musics/*"
|
|
to = "/a/:splat"
|
|
|
|
[[redirects]]
|
|
force = true
|
|
from = "/page:*"
|
|
to = "/page/:splat"
|