This repository was archived by the owner on Aug 15, 2023. It is now read-only.
File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ TK_FE_URL=http://localhost:1314
2
2
TK_BE_URL = http://localhost:14000/api
3
3
YT_FE_URL = http://localhost:1313
4
4
YT_BE_URL = http://localhost:9000/api
5
+ DEBUG = @trex*
Original file line number Diff line number Diff line change @@ -3,8 +3,14 @@ const TSConfigPathsWebpackPlugin = require('tsconfig-paths-webpack-plugin');
3
3
const version = require ( '../package.json' ) . version ;
4
4
const dotenv = require ( 'dotenv' ) ;
5
5
6
+ const DOTENV_CONFIG_PATH = process . env . DOTENV_CONFIG_PATH
7
+ ? process . env . DOTENV_CONFIG_PATH
8
+ : process . env . NODE_ENV === 'production'
9
+ ? '.env'
10
+ : '.env.development' ;
11
+
6
12
const env = dotenv . config ( {
7
- path : path . resolve ( process . cwd ( ) , process . env . DOTENV_CONFIG_PATH ?? '.env' ) ,
13
+ path : path . resolve ( process . cwd ( ) , DOTENV_CONFIG_PATH ) ,
8
14
} ) . parsed ;
9
15
10
16
function injectEnv ( definitions ) {
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"scripts" : {
6
6
"start" : " start-storybook -p 6006" ,
7
- "dev" :" DOTENV_CONFIG_PATH=.env.development start-storybook -p 6006" ,
7
+ "dev" : " DOTENV_CONFIG_PATH=.env.development start-storybook -p 6006" ,
8
8
"build" : " build-storybook -o build" ,
9
9
"lint" : " eslint ./src"
10
10
},
You can’t perform that action at this time.
0 commit comments