This commit is contained in:
Moon Man 2023-08-20 14:12:46 -04:00
parent aff7031a2f
commit bb7dcc42b8
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@ import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-contract-sizer";
import dotenv from "dotenv";
dotenv.config({ path: `.env.${process.env.NODE_ENV || "local"}` });
const env = process.env.NODE_ENV || "local";
dotenv.config({ path: `.env.${env}` });
const config: HardhatUserConfig = {
solidity: {