mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-10-05 18:30:09 +02:00
Implement dumpENV if in prod environment (#207)
implement dumpENV if in prod environment
This commit is contained in:
parent
7ae0d28ef0
commit
4a67cf2198
@ -286,6 +286,7 @@ function systemEndpoints(app) {
|
|||||||
try {
|
try {
|
||||||
const body = reqBody(request);
|
const body = reqBody(request);
|
||||||
const { newValues, error } = updateENV(body);
|
const { newValues, error } = updateENV(body);
|
||||||
|
if (process.env.NODE_ENV === "production") await dumpENV();
|
||||||
response.status(200).json({ newValues, error });
|
response.status(200).json({ newValues, error });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e.message, e);
|
console.log(e.message, e);
|
||||||
|
Loading…
Reference in New Issue
Block a user