1
+ # Settings in the [build] context are global and are applied to all contexts
2
+ # unless otherwise overridden by more specific contexts.
3
+ [build ]
4
+ # Directory to change to before starting a build.
5
+ # This is where we will look for package.json/.nvmrc/etc.
6
+ # If not set, defaults to the root directory.
7
+ # base = "project/"
8
+
9
+ # Directory that contains the deploy-ready HTML files and assets generated by
10
+ # the build. This is relative to the base directory if one has been set, or the
11
+ # root directory if a base has not been set. This sample publishes the
12
+ # directory located at the absolute path "root/project/build-output"
13
+ publish = " build/dokka/html"
14
+
15
+ # Default build command.
16
+ command = " ./gradlew dokkaHtml"
17
+
18
+ # # Directory with the serverless functions, including background functions,
19
+ # # to deploy to AWS. This is relative to the base directory if one has been set,
20
+ # # or the root directory if a base has not been set.
21
+ # functions = "functions/"
22
+ #
23
+ # # Production context: all deploys from the Production branch set in your site’s
24
+ # # deploy contexts will inherit these settings.
25
+ # [context.production]
26
+ # publish = "output/"
27
+ # command = "make publish"
28
+ # environment = { ACCESS_TOKEN = "super secret", NODE_VERSION = "14.15.3" }
29
+ #
30
+ # # Deploy Preview context: all deploys generated from a pull/merge request will
31
+ # # inherit these settings.
32
+ # [context.deploy-preview]
33
+ # publish = "dist/"
34
+ #
35
+ # # Here is another way to define context specific environment variables.
36
+ # [context.deploy-preview.environment]
37
+ # ACCESS_TOKEN = "not so secret"
38
+ #
39
+ # # Branch Deploy context: all deploys that are not from a pull/merge request or
40
+ # # from the Production branch will inherit these settings.
41
+ # [context.branch-deploy]
42
+ # command = "echo branch"
43
+ # [context.branch-deploy.environment]
44
+ # NODE_ENV = "development"
45
+ #
46
+ # # Specific branch context: all deploys from this specific branch will inherit
47
+ # # these settings.
48
+ # [context.staging] # “staging” is a branch name
49
+ # command = "echo 'staging'"
50
+ # base = "staging"
51
+ #
52
+ # # For contexts of branches with special characters, enclose the branch name
53
+ # # with quotes.
54
+ # [context."feat/branch"]
55
+ # command = "echo 'special branch'"
56
+ # base = "branch"
57
+ #
58
+ # # Redirects and headers are GLOBAL for all builds – they do not get scoped to
59
+ # # contexts no matter where you define them in the file.
60
+ # # For context-specific rules, use _headers or _redirects files, which are
61
+ # # PER-DEPLOY.
62
+ #
63
+ # # A basic redirect rule
64
+ # [[redirects]]
65
+ # from = "/*"
66
+ # to = "/blog/:splat"
67
+ #
68
+ # A redirect rule with many of the supported properties
69
+ # [[redirects]]
70
+ # from = "/old-path"
71
+ # to = "/new-path"
72
+
1
73
[[redirects ]]
2
- from = " /"
3
- to = " /build/dokka/html /kotlin-unsigned"
74
+ from = " /"
75
+ to = " /kotlin-unsigned"
4
76
# from = "/index.html"
5
77
# to = "/build/dokka/html/kotlin-unsigned/index.html"
6
78
# status = 200
21
93
# from = "/styles/*"
22
94
# to = "/build/dokka/html/styles/:splat"
23
95
# status = 200
24
- # force = true
96
+ # force = true
97
+
98
+ # # The default HTTP status code is 301, but you can define a different one.
99
+ # status = 302
100
+ #
101
+ # # By default, redirects won’t be applied if there’s a file with the same
102
+ # # path as the one defined in the `from` property. Setting `force` to `true`
103
+ # # will make the redirect rule take precedence over any existing files.
104
+ # force = true
105
+ #
106
+ # # Redirect from /old-path?id=123 to /new-path. Each combination of query
107
+ # # params needs to be defined in a separate [[redirects]] block.
108
+ # # More information at https://docs.netlify.com/routing/redirects/redirect-options/#query-parameters
109
+ # query = {id = ":id"}
110
+ #
111
+ # # Redirect based on browser language and geolocation.
112
+ # conditions = {Language = ["en"], Country = ["US"]}
113
+ #
114
+ # # Sign each request with a value defined in an environment variable
115
+ # signed = "API_SIGNATURE_TOKEN"
116
+ #
117
+ # # You can also define custom headers within your redirects blocks.
118
+ # [redirects.headers]
119
+ # X-From = "Netlify"
120
+ # X-Api-Key = "some-api-key-string"
121
+ #
122
+ # # Role-based redirects do not have a “to” property.
123
+ # [[redirects]]
124
+ # from = "/gated-path"
125
+ # status = 200
126
+ # conditions = {Role = ["admin"]}
127
+ # force = true
128
+ #
129
+ # # The following redirect is intended for use with most SPAs that handle
130
+ # # routing internally.
131
+ # [[redirects]]
132
+ # from = "/*"
133
+ # to = "/index.html"
134
+ # status = 200
135
+ #
136
+ # [[headers]]
137
+ # # Define which paths this specific [[headers]] block will cover.
138
+ # for = "/*"
139
+ #
140
+ # [headers.values]
141
+ # X-Frame-Options = "DENY"
142
+ # X-XSS-Protection = "1; mode=block"
143
+ # Content-Security-Policy = "frame-ancestors https://www.facebook.com"
144
+ #
145
+ # # Multi-value headers are expressed with multi-line strings.
146
+ # cache-control = '''
147
+ # max-age=0,
148
+ # no-cache,
149
+ # no-store,
150
+ # must-revalidate'''
151
+ #
152
+ # # Basic-Auth allows you to password protect your whole site.
153
+ # # This feature may not be available on all plans.
154
+ # Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"
0 commit comments