Skip to content

Commit

Permalink
Fix attempt to export env file
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangSenff authored Mar 27, 2024
1 parent 5ae050f commit 30c3029
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addons/godot-firebase/firebase/firebase.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const _ENVIRONMENT_VARIABLES : String = "firebase/environment_variables"
const _EMULATORS_PORTS : String = "firebase/emulators/ports"
const _AUTH_PROVIDERS : String = "firebase/auth_providers"

@export_global_file("*.env") var EnvPath : String

## @type FirebaseAuth
## The Firebase Authentication API.
@onready var Auth : FirebaseAuth = $Auth
Expand Down Expand Up @@ -101,7 +99,7 @@ func _check_emulating() -> void:
func _load_config() -> void:
if not (_config.apiKey != "" and _config.authDomain != ""):
var env = ConfigFile.new()
var err = env.load("res://addons/godot-firebase/.env" if EnvPath == "" else EnvPath)
var err = env.load("res://addons/godot-firebase/.env")
if err == OK:
for key in _config.keys():
var config_value = _config[key]
Expand Down

0 comments on commit 30c3029

Please sign in to comment.