Created
January 16, 2019 14:24
-
-
Save kresnasatya/bf93b303c3fa95bcb3b56a2129f4f911 to your computer and use it in GitHub Desktop.
Netlify toml config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[build] | |
publish = "public" | |
command = "hugo --gc --config config.production.toml" | |
[context.production.environment] | |
HUGO_VERSION = "0.53" | |
HUGO_ENV = "production" | |
HUGO_ENABLEGITINFO = "true" | |
[context.split1] | |
command = "hugo --gc --minify --enableGitInfo" | |
[context.split1.environment] | |
HUGO_VERSION = "0.53" | |
HUGO_ENV = "production" | |
[context.deploy-preview] | |
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" | |
[context.deploy-preview.environment] | |
HUGO_VERSION = "0.53" | |
[context.branch-deploy] | |
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" | |
[context.branch-deploy.environment] | |
HUGO_VERSION = "0.53" | |
[context.next.environment] | |
HUGO_ENABLEGITINFO = "true" | |
# A basic redirect rule | |
[[redirects]] | |
from = "https://yourdomainname.netlify.com/*" | |
to = "https://www.yoursite.com/:splat" | |
# The default HTTP status code is 301, but you can define a different one. | |
status = 301 | |
# By default, redirects won't be applied if there's a file with the same | |
# path as the one defined in the `from` property. Setting `force` to `true` | |
# will make the redirect rule take precedence over any existing files. | |
force = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment