Skip to content

Commit

Permalink
refactor: environment now provides boolean values instead of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail-iontsev committed Sep 21, 2024
1 parent 56dd748 commit 398b6bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/env/env.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"WEB_API_URL": "./",
"WEB_API_ENABLED": "true",
"DUCKDB_ENABLED": "false"
"WEB_API_ENABLED": false,
"DUCKDB_ENABLED": false
}
2 changes: 0 additions & 2 deletions src/shared/api/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class Environment {
const promise: Promise<AxiosResponse> = axios.get(envUrl);
return promise.then((res) => {
Object.assign(this, res.data);
this.WEB_API_ENABLED = this.WEB_API_ENABLED === "true";
this.DUCKDB_ENABLED = this.DUCKDB_ENABLED === "true";
});
}
}
Expand Down

0 comments on commit 398b6bc

Please sign in to comment.