Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
chore: use .env instead of .env.local
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jun 3, 2021
1 parent 35deda5 commit 0b8720c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions cypress/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ import dotenvPlugin from "cypress-dotenv";
const pluginConfig: Cypress.PluginConfig = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
config = dotenvPlugin(
config,
{
path: ".env.local",
},
true,
);
config = dotenvPlugin(config, {}, true);
config.env = {
...config.env,
...Object.fromEntries(
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = (env, args = {}) => {
const isProd = args.mode === "production";
let envfile = "";
try {
envfile = fs.readFileSync(`.env.local`);
envfile = fs.readFileSync(`.env`);
} catch {
// ignore
}
Expand Down

0 comments on commit 0b8720c

Please sign in to comment.