mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
Implement dumpENV if in prod environment (#207)
implement dumpENV if in prod environment
This commit is contained in:
parent
7ae0d28ef0
commit
4a67cf2198
1 changed files with 1 additions and 0 deletions
|
@ -286,6 +286,7 @@ function systemEndpoints(app) {
|
|||
try {
|
||||
const body = reqBody(request);
|
||||
const { newValues, error } = updateENV(body);
|
||||
if (process.env.NODE_ENV === "production") await dumpENV();
|
||||
response.status(200).json({ newValues, error });
|
||||
} catch (e) {
|
||||
console.log(e.message, e);
|
||||
|
|
Loading…
Add table
Reference in a new issue