File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1111- ` apphosting:secrets:grantAccess ` can now grant access to emails and can grant multiple secrets at once (#8357 )
1212- ` apphosting:secrets:set ` now has flows to help with test secrets (#8359 )
1313- Updated ` init dataconnect ` templates to ` v1 ` .
14+ - Fixed a bug where the emulator suite would set ` FIREBASE_DATACONNECT_EMULATOR_HOST ` instead of ` FIREBASE_DATA_CONNECT_EMULATOR_HOST ` .
1415- Fixed a bug in Auth emulator where accounts: lookup is case-sensitive for emails (#8344 )
1516- Fixed a bug where function deploys didn't support shorthand notation and parameterized service account (#8366 )
1617- Fixed an issue where ` sql:setup ` would incorrectly remove the ` cloudsqlsuperuser ` role from ` firebasesuperuser ` (#8363 )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export class Constants {
7777 static FIREBASE_DATABASE_EMULATOR_HOST = "FIREBASE_DATABASE_EMULATOR_HOST" ;
7878
7979 // Environment variable to discover the Data Connect emulator.
80- static FIREBASE_DATACONNECT_EMULATOR_HOST = "FIREBASE_DATACONNECT_EMULATOR_HOST " ;
80+ static FIREBASE_DATACONNECT_EMULATOR_HOST = "FIREBASE_DATA_CONNECT_EMULATOR_HOST " ;
8181
8282 // Environment variable to override SDK/CLI to point at the Firebase Auth emulator.
8383 static FIREBASE_AUTH_EMULATOR_HOST = "FIREBASE_AUTH_EMULATOR_HOST" ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
1717} from "./pg-gateway/index" ;
1818import { fromNodeSocket } from "./pg-gateway/platforms/node" ;
1919import { logger } from "../../logger" ;
20- import { hasMessage } from "../../error" ;
20+ import { hasMessage , FirebaseError } from "../../error" ;
2121import { StringDecoder } from "node:string_decoder" ;
2222
2323export const TRUNCATE_TABLES_SQL = `
@@ -140,7 +140,8 @@ export class PostgresServer {
140140 const db = await PGlite . create ( pgliteArgs ) ;
141141 return db ;
142142 }
143- throw err ;
143+ logger . debug ( `Error from pglite: ${ err } ` ) ;
144+ throw new FirebaseError ( "Unexpected error starting up Postgres." ) ;
144145 }
145146 }
146147
Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ export function setEnvVarsForEmulators(
4545 env [ Constants . CLOUD_TASKS_EMULATOR_HOST ] = host ;
4646 break ;
4747 case Emulators . DATACONNECT :
48- env [ Constants . FIREBASE_DATACONNECT_EMULATOR_HOST ] = host ;
48+ env [ Constants . FIREBASE_DATACONNECT_EMULATOR_HOST ] = `http://${ host } ` ;
49+ // Originally, there was a typo in this env var name. To avoid breaking folks unecessarily,
50+ // we'll keep setting this.
51+ env [ "FIREBASE_DATACONNECT_EMULATOR_HOST" ] = host ;
4952 }
5053 }
5154}
You can’t perform that action at this time.
0 commit comments