From 3218aed0a9b918b02eff9c6c1a3ab3034152eb6a Mon Sep 17 00:00:00 2001 From: LordSchmackes Date: Sat, 23 May 2026 09:52:26 +0200 Subject: [PATCH] firebase fix --- config.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config.php b/config.php index 7a9c641..349655c 100644 --- a/config.php +++ b/config.php @@ -34,6 +34,17 @@ function load_env() { // Automatically load on include load_env(); +function get_firebase_config(): array { + return [ + 'apiKey' => getenv('FIREBASE_API_KEY') ?: '', + 'authDomain' => getenv('FIREBASE_AUTH_DOMAIN') ?: '', + 'projectId' => getenv('FIREBASE_PROJECT_ID') ?: '', + 'storageBucket' => getenv('FIREBASE_STORAGE_BUCKET') ?: '', + 'messagingSenderId' => getenv('FIREBASE_MESSAGING_SENDER_ID') ?: '', + 'appId' => getenv('FIREBASE_APP_ID') ?: '', + ]; +} + /** * Get a PDO connection to the database. */