generated from 5t3ph/11ty-netlify-jumpstart
-
Notifications
You must be signed in to change notification settings - Fork 226
/
netlify.toml
37 lines (30 loc) · 956 Bytes
/
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
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = ""
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "public"
# Default build command.
command = "AWS_LAMBDA_FUNCTION_NAME=trickpuppeteer npm run build"
Functions = "api"
[[redirects]]
from = "/feed/"
to = "/feed/feed.xml"
status = 200
[[redirects]]
from = "/style-img/:style"
to = "/.netlify/functions/style-img"
status = 200
force = true
[[redirects]]
from = "/social-img/:slug/:title"
to = "/.netlify/functions/social-img"
status = 200
force = true
[[redirects]]
from = "/social-img/:slug/:title/:author"
to = "/.netlify/functions/social-img"
status = 200
force = true