Skip to content

Commit 541e296

Browse files
authored
Merge pull request #3 from codad5/dev
Temporary fix on ENV variable
2 parents b914cf5 + 40ed5bd commit 541e296

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.env.sample

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
VITE_GOOGLE_CLIENT_ID=YOUR_CLIENT_ID
22
VITE_GOOGLE_CLIENT_SECRET=YOUR_CLIENT_SECRET
3-
PASSWORD=YOUR_PASSWORD
3+
4+
5+
DB_PASSWORD=YOUR_DB_PASSWORD

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)