Skip to content

Commit

Permalink
Allow to store Notion secrets in .env
Browse files Browse the repository at this point in the history
  • Loading branch information
richartkeil committed Oct 29, 2023
1 parent 899999b commit f793fc2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NOTION_TOKEN=Notion Auth Token
NOTION_SPACE_ID=Notion Space ID
NOTION_USER_ID=Notion User ID
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
workspace/
workspace.zip
workspace.zip
.env
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "dotenv/config";
import axios from "axios";
import AdmZip from "adm-zip";
import { createWriteStream, promises as fs } from "fs";
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"license": "MIT",
"dependencies": {
"adm-zip": "^0.5.10",
"axios": "^0.21"
"axios": "^0.21",
"dotenv": "^16.3.1"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.2",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f793fc2

Please sign in to comment.