We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c4df2 commit 3db868dCopy full SHA for 3db868d
src/lib/notion.js
@@ -1,6 +1,8 @@
1
+const secret = globalThis.TOKEN_V2
2
+
3
const _BASEURL = 'https://www.notion.so/api/v3'
4
const _HEADERS = {
- Cookie: `token_v2=${typeof TOKEN_V2 !== undefined ? TOKEN_V2 : ''};`,
5
+ Cookie: `token_v2=${typeof secret !== undefined ? secret : ''};`,
6
'Content-Type': 'application/json',
7
}
8
wrangler.toml
@@ -6,10 +6,10 @@ workers_dev = true
route = ""
zone_id = ""
compatibility_date = "2022-04-29"
9
-# [secrets]
10
-# TOKEN_V2
11
-# SLACK_WEBHOOK
12
-# DISCORD_WEBHOOK
13
-# EXPORT_TYPE
14
-# LOCALE
15
-# TIMEZONE
+#[secrets]
+#TOKEN_V2
+#SLACK_WEBHOOK
+#DISCORD_WEBHOOK
+#EXPORTTYPE
+#LOCALE
+#TIMEZONE
0 commit comments