@@ -11,7 +11,7 @@ import setup from "./setup.js";
11
11
12
12
const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
13
13
14
- function loadEnv ( ) : void {
14
+ export function loadEnv ( ) : void {
15
15
try {
16
16
const envPath = path . resolve ( process . cwd ( ) , ".env" ) ;
17
17
console . log ( "Loading .env file from" , envPath ) ;
@@ -28,7 +28,7 @@ function loadEnv(): void {
28
28
loadEnv ( ) ;
29
29
30
30
const {
31
- FIREBASE_ADMIN = "^10.0 .0" ,
31
+ FIREBASE_ADMIN = "6.5 .0" ,
32
32
PROJECT_ID ,
33
33
DATABASE_URL ,
34
34
STORAGE_BUCKET ,
54
54
process . exit ( 1 ) ;
55
55
}
56
56
57
- setup ( TEST_RUN_ID , FIREBASE_ADMIN ) ;
57
+ setup ( FIREBASE_ADMIN ) ;
58
58
59
59
const config = {
60
60
projectId : PROJECT_ID ,
@@ -68,7 +68,7 @@ const firebaseConfig = {
68
68
projectId : PROJECT_ID ,
69
69
storageBucket : STORAGE_BUCKET ,
70
70
} ;
71
- const env = {
71
+ export const env = {
72
72
FIRESTORE_PREFER_REST : "true" ,
73
73
GCLOUD_PROJECT : config . projectId ,
74
74
FIREBASE_CONFIG : JSON . stringify ( firebaseConfig ) ,
@@ -96,7 +96,7 @@ async function discoverAndModifyEndpoints() {
96
96
try {
97
97
const port = await portfinder . getPortPromise ( { port : 9000 } ) ;
98
98
const delegate = await getRuntimeDelegate ( config ) ;
99
- const killServer = await delegate . serveAdmin ( port . toString ( ) , { } , env ) ;
99
+ const killServer = await delegate . serveAdmin ( port . toString ( ) , env ) ;
100
100
101
101
console . log ( "Started on port" , port ) ;
102
102
const originalYaml = await detectFromPort (
0 commit comments