Skip to content

Commit e913c3f

Browse files
authored
update day 27 code snippet
1 parent 53f4e19 commit e913c3f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

day-27/post.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,15 @@ module.exports = getClientEnvironment;
288288
We can skip all the complex part of that operation as we'll only need to modify the second argument to the reduce function, in other words, we'll update the object:
289289

290290
```javascript
291-
{
292-
'process.env.NODE_ENV': NODE_ENV
291+
{
292+
// Useful for determining whether we’re running in production mode.
293+
// Most importantly, it switches React into the correct mode.
294+
NODE_ENV: process.env.NODE_ENV || "development",
295+
// Useful for resolving the correct path to static assets in `public`.
296+
// For example, <img src={process.env.PUBLIC_URL + '/img/logo.png'} />.
297+
// This should only be used as an escape hatch. Normally you would put
298+
// images into the `src` and `import` them in code to get their paths.
299+
PUBLIC_URL: publicUrl,
293300
}
294301
```
295302

0 commit comments

Comments
 (0)