generated from OneGraph/oneblog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
44 lines (37 loc) · 1.39 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
[build]
command = "yarn install && yarn relay && yarn build && yarn build:netlify-functions"
publish = "build/public"
functions = "built-netlify-functions/"
environment = { NETLIFY = "true" }
[context]
environment = { NETLIFY = "true", AWS_LAMBDA_JS_RUNTIME = "nodejs12.x" }
[template.environment]
RAZZLE_ONEGRAPH_APP_ID = "Your OneGraph app id"
RAZZLE_GITHUB_REPO_NAME = "Name of the repo that OneBlog should pull issues from"
RAZZLE_GITHUB_REPO_OWNER = "Owner of the repo that OneBlog should pull issues from"
RAZZLE_TITLE = "The title of the blog"
RAZZLE_DESCRIPTION="Description of the blog"
RAZZLE_SITE_HOSTNAME="Hostname for your blog, e.g. https://example.com"
RAZZLE_DEFAULT_GITHUB_LOGIN="The github login for the owner of the blog"
OG_GITHUB_TOKEN = "The server-side token from OneGraph that will be used in persisted queries"
OG_DASHBOARD_ACCESS_TOKEN = "The OneGraph API token that allows the build to create persisted queries"
[[redirects]]
from = "/"
to = "/.netlify/functions/index/"
status = 200
[[redirects]]
from = "/:top"
to = "/.netlify/functions/index/:top"
status = 200
[[redirects]]
from = "/post/*"
to = "/.netlify/functions/index/post/:splat"
status = 200
[[redirects]]
from = "/feed*"
to = "/.netlify/functions/index/feed:splat"
status = 200
[[redirects]]
from = "/image*"
to = "/.netlify/functions/index/image:splat"
status = 200