-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
61 lines (51 loc) · 1.7 KB
/
netlify.toml
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
54
55
56
57
58
59
60
61
# Netlify build configuration
# https://docs.netlify.com/configure-builds/file-based-configuration/
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
# If not set, defaults to the root directory.
base = "/experiences/dist"
# base = "/experiences/"
# Directory that contains the deploy-ready HTML files and assets generated by
# the build. This is relative to the base directory if one has been set, or the
# root directory if a base has not been set.
publish = ""
# publish = "dist"
# Default build command.
# command = "npm run build" # triggers nuxt build
#
# trigger build only when dist has changed
# https://docs.netlify.com/configure-builds/common-configurations/ignore-builds/#ignore-examples
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."
# [build.environment]
# # overrides variables in the Site settings
# NODE_VERSION = "14"
# NPM_VERSION = "7"
# NODE_OPTIONS = "--max-old-space-size=8192"
# NODE_ENV = "production"
[[redirects]]
from = "/data/*"
to = "/data/:splat"
status = 302
force = true
# This redirect is only necessary to make netlify dev work
# but I suspect netlify configures something like this by default
# when they detect a nuxt project
[[redirects]]
from = "/_nuxt/*"
to = "/_nuxt/:splat"
status = 302
force = true
# This is necessary for netlify dev, but maybe not in prod?
[[redirects]]
from = "/api/*"
to = "/.netlify/:splat"
status = 200
force = true
[[redirects]]
from = "/*"
to = "index.html"
status = 200
# eof