summaryrefslogtreecommitdiff
path: root/netlify.toml
blob: d6d487c701b252f1e4dd986990e2ae7f46cb08f3 (plain)
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
[build]
# This assumes that the Zola site is in a docs folder. If it isn't, you don't need
# to have a `base` variable but you do need the `publish` and `command` variables.
publish = "public"
command = "zola build"

[build.environment]
# Set the version name that you want to use and Netlify will automatically use it.
ZOLA_VERSION = "0.17.2"

# The magic for deploying previews of branches.
# We need to override the base url with whatever url Netlify assigns to our
# preview site.  We do this using the Netlify environment variable
# `$DEPLOY_PRIME_URL`.

[context.deploy-preview]
command = "zola build --base-url $DEPLOY_PRIME_URL"

# curl -H "Content-Type: application/zip" \
#     -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN_FROM_STEP_1" \
#     --data-binary "@FILE_NAME.zip" \
#     https://api.netlify.com/api/v1/sites/SITE_NAME.netlify.com/deploys

[[headers]]
  for = "/living-in-nanshan"
  [headers.values]
    Access-Control-Allow-Origin = "https://pretro.xyz"