-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
netlify.toml
29 lines (24 loc) · 810 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
[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"
[[redirects]]
from = "/feed/"
to = "/feed/feed.xml"
status = 200
[[redirects]]
from = "/social-img/:slug/:title"
to = "/.netlify/functions/social-img"
status = 200
force = true
[[redirects]]
from = "/social-img/:slug/:title/:date"
to = "/.netlify/functions/social-img"
status = 200
force = true