set up config to use .env values in plans for switching to containers
diff --git a/package.json b/package.json
index 87f3cb2..4f9bec9 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,6 @@
{
"dependencies": {
+ "@clicks/nsfwjs": "^3.0.2",
"@hokify/agenda": "^6.3.0",
"@octokit/graphql": "^5.0.6",
"@tensorflow/tfjs": "^4.7.0",
@@ -12,6 +13,7 @@
"clamscan": "^2.1.2",
"diff": "^5.1.0",
"discord.js": "^14.11.0",
+ "dotenv": "^16.1.4",
"eslint": "^8.42.0",
"express": "^4.18.2",
"fuse.js": "^6.6.2",
@@ -22,7 +24,6 @@
"mongodb": "^5.6.0",
"node-fetch": "^3.3.1",
"node-tesseract-ocr": "^2.2.1",
- "@clicks/nsfwjs": "^3.0.2",
"octokit": "^2.0.19",
"seedrandom": "^3.0.5",
"structured-clone": "^0.2.2",
@@ -35,7 +36,7 @@
"scripts": {
"build": "tsc && pnpm copy-files",
"copy-files": "copyfiles -u 1 src/reflex/nsfwjs/example/nsfw_demo/public/model/**/* dist/",
- "start": "node --experimental-json-modules --enable-source-maps dist/index.js",
+ "start": "node --experimental-json-modules --enable-source-maps -r dotenv/config dist/index.js",
"dev": "rm -rf dist && eslint src --fix && pnpm build && node --experimental-json-modules --enable-source-maps dist/index.js",
"force-dev": "clear; rm -rf dist; tsc-suppress && pnpm copy-files && node --experimental-json-modules --enable-source-maps dist/index.js",
"lint": "echo 'Style checking...'; prettier --check .; echo 'Linting...'; eslint src; echo 'To auto-fix everything possible, please run `pnpm lint-fix`'; true",