Skip to content

Commit

Permalink
Fix DB_PASSWORD default value
Browse files Browse the repository at this point in the history
  • Loading branch information
codad5 committed Dec 29, 2023
1 parent 6c8167f commit 40ed5bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "google-task",
"private": true,
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
8 changes: 7 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use libs::filehelper::{ENV_FILE, initialize_user_files};
fn run_specta() {

println!("Running specta to generate typescript bindings");

#[cfg(debug_assertions)]
ts::export(collect_types![
save_access_token,
Expand All @@ -29,6 +28,13 @@ fn run_specta() {

fn main() {
dotenv::from_filename(ENV_FILE).ok();

// set default DB_PASSWORD env variable if not set
// this is setting is for now till we have a better way to handle this env variable on build
if env::var("DB_PASSWORD").is_err() {
env::set_var("DB_PASSWORD", "password");
}

initialize_user_files();
run_specta();

Expand Down

0 comments on commit 40ed5bd

Please sign in to comment.