generated from OneGraph/oneblog
-
Notifications
You must be signed in to change notification settings - Fork 11
/
netlify.toml
48 lines (40 loc) · 1.46 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
[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"}
[template.environment]
NEXT_PUBLIC_ONEGRAPH_APP_ID = "Your OneGraph app id"
NEXT_PUBLIC_GITHUB_REPO_NAME = "Name of the repo that OneBlog should pull issues from"
NEXT_PUBLIC_GITHUB_REPO_OWNER = "Owner of the repo that OneBlog should pull issues from"
NEXT_PUBLIC_TITLE = "The title of the blog"
NEXT_PUBLIC_DESCRIPTION="Description of the blog"
NEXT_PUBLIC_SITE_HOSTNAME="Hostname for your blog, e.g. https://example.com"
NEXT_PUBLIC_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"
[[redirects]]
from = "/feed*"
to = "/.netlify/functions/next_api_feed_ext"
status = 200