Skip to content

Commit c41d11c

Browse files
1 parent 12c90ed commit c41d11c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default ({ recordMap }) => (
6767
)
6868
```
6969

70-
Note: for heavier blocks, you'll have to opt into using them via `NotionRenderer.components`. These are not included in the default `NotionRenderer` export because they're too heavyweight for a lot of use cases.
70+
Note: for heavier blocks, you'll have to opt into using them via `NotionRenderer.components`. These are not included in the default `NotionRenderer` export because they're too heavyweight for many use cases.
7171

7272
## Styles
7373

@@ -160,6 +160,8 @@ For each of these optional components, make sure you're also importing the relev
160160

161161
You may optionally pass an `authToken` and `activeUser` to the API if you want to access private Notion pages. Both can be retrieved from your web browser. Once you are viewing your workpace, open your Development Tools > Application > Cookie > and Copy the `token_v2` and `notion_user_id`. Respectively, activeUser: notion_user_id, authToken: token_v2.
162162

163+
We recommend storing these as environment variables and passing them into the `NotionAPI` constructor as follows:
164+
163165
```tsx
164166
const notion = new NotionAPI({
165167
activeUser: process.env.NOTION_ACTIVE_USER,

0 commit comments

Comments
 (0)