From 62375221479298b5da2799c00a530c97a751b96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Godek?= Date: Sat, 4 Jan 2025 01:26:25 +0100 Subject: [PATCH] tip --- docs/frontend/for_developers.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/frontend/for_developers.md b/docs/frontend/for_developers.md index fa34161..8cfa31e 100644 --- a/docs/frontend/for_developers.md +++ b/docs/frontend/for_developers.md @@ -64,6 +64,8 @@ Additionally, the main NGINX proxy server listens on port **5000** for plain HTT - `REACT_APP_ALT_AUTH` - if set to `plg`, app will use plgrid authentication - `REACT_APP_DEPLOYMENT` - if set to `dev`, configuration wil be editable from the browser console. For example, you can change the backend URL by typing `window.BACKEND_URL="http://mynew.url"` in the browser console. +**It might happen that the Node will cache values for above variables and changes in .env file won't take effect. Close frontend server if it's running, open new terminal and enter into node interactive envirionment by executing `node` command. Then type process.env.NAME_OF_VARIABLE. If it's defined run `delete process.env.NAME_OF_VARIABLE`.** + ### Useful commands In order to easy configure the app, `cross-env` package for setting env is used with custom npm scripts.