File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export class Constants {
77
77
static FIREBASE_DATABASE_EMULATOR_HOST = "FIREBASE_DATABASE_EMULATOR_HOST" ;
78
78
79
79
// 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 " ;
81
81
82
82
// Environment variable to override SDK/CLI to point at the Firebase Auth emulator.
83
83
static FIREBASE_AUTH_EMULATOR_HOST = "FIREBASE_AUTH_EMULATOR_HOST" ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
} from "./pg-gateway/index" ;
18
18
import { fromNodeSocket } from "./pg-gateway/platforms/node" ;
19
19
import { logger } from "../../logger" ;
20
- import { hasMessage } from "../../error" ;
20
+ import { hasMessage , FirebaseError } from "../../error" ;
21
21
import { StringDecoder } from "node:string_decoder" ;
22
22
23
23
export const TRUNCATE_TABLES_SQL = `
@@ -140,7 +140,8 @@ export class PostgresServer {
140
140
const db = await PGlite . create ( pgliteArgs ) ;
141
141
return db ;
142
142
}
143
- throw err ;
143
+ logger . debug ( `Error from pglite: ${ err } ` ) ;
144
+ throw new FirebaseError ( "Unexpected error starting up Postgres." ) ;
144
145
}
145
146
}
146
147
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ export function setEnvVarsForEmulators(
46
46
break ;
47
47
case Emulators . DATACONNECT :
48
48
env [ Constants . FIREBASE_DATACONNECT_EMULATOR_HOST ] = 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 ;
49
52
}
50
53
}
51
54
}
You can’t perform that action at this time.
0 commit comments