@@ -74,6 +74,14 @@ function getServedPath(appPackageJson) {
74
74
75
75
// config after eject: we're in ./config/
76
76
module . exports = {
77
+ dotenv : resolveApp ( '.env' ) ,
78
+ dotenvLocal : resolveApp ( '.env.local' ) ,
79
+ dotenvDevelopment : resolveApp ( '.env.development' ) ,
80
+ dotenvDevelopmentLocal : resolveApp ( '.env.development.local' ) ,
81
+ dotenvTest : resolveApp ( '.env.test' ) ,
82
+ dotenvTestLocal : resolveApp ( '.env.test.local' ) ,
83
+ dotenvProduction : resolveApp ( '.env.production' ) ,
84
+ dotenvProductionLocal : resolveApp ( '.env.production.local' ) ,
77
85
appBuild : resolveApp ( 'build' ) ,
78
86
appPublic : resolveApp ( 'public' ) ,
79
87
appHtml : resolveApp ( 'public/index.html' ) ,
@@ -96,6 +104,14 @@ function resolveOwn(relativePath) {
96
104
// config before eject: we're in ./node_modules/react-scripts/config/
97
105
module . exports = {
98
106
appPath : resolveApp ( '.' ) ,
107
+ dotenv : resolveApp ( '.env' ) ,
108
+ dotenvLocal : resolveApp ( '.env.local' ) ,
109
+ dotenvDevelopment : resolveApp ( '.env.development' ) ,
110
+ dotenvDevelopmentLocal : resolveApp ( '.env.development.local' ) ,
111
+ dotenvTest : resolveApp ( '.env.test' ) ,
112
+ dotenvTestLocal : resolveApp ( '.env.test.local' ) ,
113
+ dotenvProduction : resolveApp ( '.env.production' ) ,
114
+ dotenvProductionLocal : resolveApp ( '.env.production.local' ) ,
99
115
appBuild : resolveApp ( 'build' ) ,
100
116
appPublic : resolveApp ( 'public' ) ,
101
117
appHtml : resolveApp ( 'public/index.html' ) ,
@@ -125,6 +141,14 @@ if (
125
141
) {
126
142
module . exports = {
127
143
appPath : resolveApp ( '.' ) ,
144
+ dotenv : resolveOwn ( 'template/.env' ) ,
145
+ dotenvLocal : resolveOwn ( 'template/.env.local' ) ,
146
+ dotenvDevelopment : resolveOwn ( 'template/.env.development' ) ,
147
+ dotenvDevelopmentLocal : resolveOwn ( 'template/.env.development.local' ) ,
148
+ dotenvTest : resolveOwn ( 'template/.env.test' ) ,
149
+ dotenvTestLocal : resolveOwn ( 'template/.env.test.local' ) ,
150
+ dotenvProduction : resolveOwn ( 'template/.env.production' ) ,
151
+ dotenvProductionLocal : resolveOwn ( 'template/.env.production.local' ) ,
128
152
appBuild : resolveOwn ( '../../build' ) ,
129
153
appPublic : resolveOwn ( 'template/public' ) ,
130
154
appHtml : resolveOwn ( 'template/public/index.html' ) ,
0 commit comments