committed by
Jingyi Ding
parent
e889e4e5d1
commit
6e58cbea78
@ -14,11 +14,11 @@ localeTitle: 使用.env文件
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
if (process.env.VAR_NAME === "allCaps") {
|
if (process.env.VAR_NAME === "allCaps") {
|
||||||
resonse = "Hello World".toUpperCase();
|
response = "Hello World".toUpperCase();
|
||||||
} else {
|
} else {
|
||||||
response = "Hello World";
|
response = "Hello World";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
[帮助我们的社区扩展这些提示和指南](https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/apis-and-microservices/basic-node-and-express/use-the-.env-file/index.md) 。
|
[帮助我们的社区扩展这些提示和指南](https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/apis-and-microservices/basic-node-and-express/use-the-.env-file/index.md) 。
|
||||||
|
Reference in New Issue
Block a user