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:
Lucas Oliveira 2024-08-16 17:23:11 -03:00 • committed by GitHub
commit 0d60fbf3e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 69 additions and 37 deletions

View file

@ -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,