mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
964 stars 243 forks source link

Handle .env file changes better #1659

Closed prakhargupta1 closed 1 year ago

prakhargupta1 commented 1 year ago

Duplicates

Latest version

Summary 💡

Update env variables for serverside code when the .env file changes. Right now the user needs to restart Toolpad.

Examples 🌈

No response

Motivation 🔦

No response

bytasv commented 1 year ago

Would it be enough to watch for file change and restart the process when change is detected or does it have to be smarted and know how to update values without restarting the app?

Janpot commented 1 year ago

Serverside functions are run in a child process. It's enough to restart the child process with new env variables. No need to restart the whole app.

Janpot commented 1 year ago

Did this today