Skip to content

Commit c202fa0

Browse files
committed
Remove dotenv.
1 parent 1e578f4 commit c202fa0

4 files changed

Lines changed: 2 additions & 24 deletions

File tree

config/webpack.config.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
const path = require('path');
22
const defaults = require('@wordpress/scripts/config/webpack.config.js');
3-
const webpack = require('webpack')
4-
const dotenv = require('dotenv')
5-
6-
const env = dotenv.config().parsed
7-
const envKeys = Object.keys(env).reduce((prev, next) => {
8-
prev[`process.env.${next}`] = JSON.stringify(env[next])
9-
return prev
10-
}, {})
113

124
module.exports = (env) => ({
135
...defaults,
@@ -53,9 +45,5 @@ module.exports = (env) => ({
5345
},
5446
},
5547
]
56-
},
57-
plugins: [
58-
...defaults.plugins,
59-
new webpack.DefinePlugin(envKeys)
60-
]
48+
}
6149
});

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"aos": "^2.3.4",
3333
"babel-loader": "^9.2.1",
3434
"css-loader": "^7.1.2",
35-
"dotenv": "^16.4.7",
3635
"gettext-parser": "^8.0.0",
3736
"glob": "^11.0.1",
3837
"react-router-dom": "^7.1.1",

pnpm-lock.yaml

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/scripts/auth/components/SignUp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {useState, useEffect} from 'react';
22
import {__} from '@wordpress/i18n';
3-
import {navigate, useAuth} from "../AuthContext";
3+
import {useAuth} from "../AuthContext";
44
import {toast} from "react-toastify";
55
import {useLocation} from "react-router-dom";
66
import AuthLinks from "./AuthLinks";

0 commit comments

Comments
 (0)