-
-
Notifications
You must be signed in to change notification settings - Fork 603
/
Copy pathconfig.ts
24 lines (20 loc) · 1.12 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// TODO: change these to your own values
// NOTE: rootNotionSpaceId is optional; set it to undefined if you don't want to
// use it.
export const rootNotionPageId = '067dd719a912471ea9a3ac10710e7fdf'
export const rootNotionSpaceId = 'fde5ac74-eea3-4527-8f00-4482710e1af3'
// NOTE: having this enabled can be pretty expensive as it re-generates preview
// images each time a page is built. In a production setting, we recommend that
// you cache the preview image results in a key-value database.
export const previewImagesEnabled = true
// Whether to use the official public Notion API or the unofficial private API.
// Note that the official API doesn't expose formatting options for many blocks
// and is currently not as well-supported.
// If you want to use the official API, you must provide a NOTION_TOKEN env var.
export const useOfficialNotionAPI =
false ||
(process.env.USE_OFFICIAL_NOTION_API === 'true' && process.env.NOTION_TOKEN)
export const isDev =
process.env.NODE_ENV === 'development' || !process.env.NODE_ENV
export const port = process.env.PORT || 3000
export const rootDomain = isDev ? `localhost:${port}` : null