You can adjust various development and production settings by setting environment variables in your shell or with .env.
Note: You do not need to declare
REACT_APP_before the below variables as you would with custom environment variables.
|BROWSER||✅ Used||🚫 Ignored||By default, Create React App will open the default system browser, favoring Chrome on macOS. Specify a browser to override this behavior, or set it to |
|HOST||✅ Used||🚫 Ignored||By default, the development web server binds to |
|PORT||✅ Used||🚫 Ignored||By default, the development web server will attempt to listen on port 3000 or prompt you to attempt the next available port. You may use this variable to specify a different port.|
|HTTPS||✅ Used||🚫 Ignored||When set to |
|PUBLIC_URL||🚫 Ignored||✅ Used||Create React App assumes your application is hosted at the serving web server's root or a subpath as specified in |
|CI||✅ Used||✅ Used||When set to |
|REACT_EDITOR||✅ Used||🚫 Ignored||When an app crashes in development, you will see an error overlay with clickable stack trace. When you click on it, Create React App will try to determine the editor you are using based on currently running processes, and open the relevant source file. You can send a pull request to detect your editor of choice. Setting this environment variable overrides the automatic detection. If you do it, make sure your systems PATH environment variable points to your editor’s bin folder. You can also set it to |
|CHOKIDAR_USEPOLLING||✅ Used||🚫 Ignored||When set to |
|GENERATE_SOURCEMAP||🚫 Ignored||✅ Used||When set to |
|NODE_PATH||✅ Used||✅ Used||Same as |
|INLINE_RUNTIME_CHUNK||🚫 Ignored||✅ Used||By default, Create React App will embed the runtime script into |