Skip to content

Commit 40ed5bd

Browse files
committed
Fix DB_PASSWORD default value
1 parent 6c8167f commit 40ed5bd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "google-task",
33
"private": true,
4-
"version": "0.0.7",
4+
"version": "0.0.8",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use libs::filehelper::{ENV_FILE, initialize_user_files};
1515
fn run_specta() {
1616

1717
println!("Running specta to generate typescript bindings");
18-
1918
#[cfg(debug_assertions)]
2019
ts::export(collect_types![
2120
save_access_token,
@@ -29,6 +28,13 @@ fn run_specta() {
2928

3029
fn main() {
3130
dotenv::from_filename(ENV_FILE).ok();
31+
32+
// set default DB_PASSWORD env variable if not set
33+
// this is setting is for now till we have a better way to handle this env variable on build
34+
if env::var("DB_PASSWORD").is_err() {
35+
env::set_var("DB_PASSWORD", "password");
36+
}
37+
3238
initialize_user_files();
3339
run_specta();
3440

0 commit comments

Comments
 (0)