---
type: snippet
tags: ['create-react-app', 'node']
status: release
ctime: 2022-11-21
mtime: 2024-03-22
---

```sh
# .env
REACT_APP_VERSION=0.0.0-${TURBO_HASH}
```

REACT_APP_VERSION을 자동으로 입력할 방법을 찾다가 결국 hash값을 추가했다.

---

- [Adding Custom Environment Variables | Create React App](https://create-react-app.dev/docs/adding-custom-environment-variables/#expanding-environment-variables-in-env)
- [GitHub - motdotla/dotenv-expand: Variable expansion for dotenv. Expand variables already on your machine for use in your .env file.](https://github.com/motdotla/dotenv-expand)
- [Create timestamp variable in bash script - Stack Overflow](https://stackoverflow.com/questions/17066250/create-timestamp-variable-in-bash-script)
