-
Notifications
You must be signed in to change notification settings - Fork 3
/
netlify.toml
66 lines (52 loc) · 1.21 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
62
63
64
65
66
# Global context
[build]
# Base directory
base = "docs"
# Build command
command = "yarn generate"
# Build directory
publish = "dist/"
# Serverless Lambda functions
functions = "lambda/"
# Ignore builds
ignore = "git diff --quiet HEAD^ HEAD . ../package.json"
# Enforce yarn
[build.environment]
NETLIFY_USE_YARN = "true"
NODE_VERSION = "14.16.0"
YARN_VERSION = "1.22.10"
# Post processing configuration
[build.processing]
skip_processing = false
[build.processing.html]
pretty_urls = false
[build.processing.css]
bundle = false
minify = false
[build.processing.js]
bundle = false
minify = false
[build.processing.images]
compress = true
# Deploy from production branch
[context.production]
[context.production.processing]
skip_processing = false
# Deploy from pull and merge request
[context.deploy-preview]
[context.deploy-preview.processing]
skip_processing = true
# Deploy from non production branches
[context.branch-deploy]
[context.branch-deploy.processing]
skip_processing = true
[[redirects]]
from = "https://nuxt-hue.netlify.app/*"
to = "https://nuxt-hue.lihbr.com/:splat"
status = 301
force = true
[[redirects]]
from = "https://nuxt-hue.lucie.red/*"
to = "https://nuxt-hue.lihbr.com/:splat"
status = 301
force = true