@@ -11,7 +11,7 @@ import setup from "./setup.js";
1111
1212const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
1313
14- function loadEnv ( ) : void {
14+ export function loadEnv ( ) : void {
1515 try {
1616 const envPath = path . resolve ( process . cwd ( ) , ".env" ) ;
1717 console . log ( "Loading .env file from" , envPath ) ;
@@ -28,7 +28,7 @@ function loadEnv(): void {
2828loadEnv ( ) ;
2929
3030const {
31- FIREBASE_ADMIN = "^10.0 .0" ,
31+ FIREBASE_ADMIN = "6.5 .0" ,
3232 PROJECT_ID ,
3333 DATABASE_URL ,
3434 STORAGE_BUCKET ,
5454 process . exit ( 1 ) ;
5555}
5656
57- setup ( TEST_RUN_ID , FIREBASE_ADMIN ) ;
57+ setup ( FIREBASE_ADMIN ) ;
5858
5959const config = {
6060 projectId : PROJECT_ID ,
@@ -68,7 +68,7 @@ const firebaseConfig = {
6868 projectId : PROJECT_ID ,
6969 storageBucket : STORAGE_BUCKET ,
7070} ;
71- const env = {
71+ export const env = {
7272 FIRESTORE_PREFER_REST : "true" ,
7373 GCLOUD_PROJECT : config . projectId ,
7474 FIREBASE_CONFIG : JSON . stringify ( firebaseConfig ) ,
@@ -96,7 +96,7 @@ async function discoverAndModifyEndpoints() {
9696 try {
9797 const port = await portfinder . getPortPromise ( { port : 9000 } ) ;
9898 const delegate = await getRuntimeDelegate ( config ) ;
99- const killServer = await delegate . serveAdmin ( port . toString ( ) , { } , env ) ;
99+ const killServer = await delegate . serveAdmin ( port . toString ( ) , env ) ;
100100
101101 console . log ( "Started on port" , port ) ;
102102 const originalYaml = await detectFromPort (
0 commit comments