Skip to content

Commit

Permalink
style(whatislove-dev): revert replace dotenv package with process.loa…
Browse files Browse the repository at this point in the history
…dEnvFile wd-521
  • Loading branch information
what1s1ove committed Jul 28, 2024
1 parent 52b1872 commit 44ed801
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/whatislove-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@types/markdown-it": "14.1.1",
"bemlint": "1.7.0",
"browserslist": "4.22.1",
"dotenv": "16.4.5",
"eleventy-plugin-og-image": "4.0.0-beta.7",
"esbuild": "0.19.5",
"html-minifier-terser": "7.2.0",
Expand Down
4 changes: 1 addition & 3 deletions apps/whatislove-dev/src/data/environment.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { join } from 'node:path'
import 'dotenv/config'
import process from 'node:process'

process.loadEnvFile(join(import.meta.dirname, `../../`, `.env`))

let { DEVTO_API_KEY, ENVIRONMENT, WEBMENTION_API_KEY } = process.env

let isDevelopment = ENVIRONMENT === `development`
Expand Down
14 changes: 14 additions & 0 deletions package-lock.json

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

0 comments on commit 44ed801

Please sign in to comment.