fix: auto saving config (#3395)
* remove env definition from vite * add get config query * add save config hook to add info to autosaving and axios * Use save config hook to get info * Create autoSaving variable on flowsManagerStore * Adds autoSaving from store into every place that used the env variables * fix wrong url --------- Co-authored-by: anovazzi1 <otavio2204@gmail.com>
This commit is contained in:
parent
b0619f59ff
commit
0d60fbf3e7
11 changed files with 69 additions and 37 deletions
|
|
@ -31,9 +31,6 @@ export default defineConfig(({ mode }) => {
|
|||
outDir: "build",
|
||||
},
|
||||
define: {
|
||||
"process.env.LANGFLOW_AUTO_SAVING": JSON.stringify(
|
||||
process.env.LANGFLOW_AUTO_SAVING,
|
||||
),
|
||||
"process.env.BACKEND_URL": JSON.stringify(process.env.BACKEND_URL),
|
||||
"process.env.ACCESS_TOKEN_EXPIRE_SECONDS": JSON.stringify(
|
||||
process.env.ACCESS_TOKEN_EXPIRE_SECONDS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue