Skip to content

Commit

Permalink
add node_env to if clientApp
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOooh committed Jan 28, 2024
1 parent b8a8bb3 commit 373feca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/app/src/firebase/clientApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const getCloudFunction = (functionName: string) => {
return returnedFunction;
};

if (process.env.NEXT_PUBLIC_EMULATORS_ON === 'true') {
if (process.env.NEXT_PUBLIC_EMULATORS_ON === 'true' && process.env.NODE_ENV === 'development') {
connectAuthEmulator(auth, 'http://localhost:9099');
connectFirestoreEmulator(db, 'localhost', 8080);
connectStorageEmulator(storage, 'localhost', 9199);
Expand Down

0 comments on commit 373feca

Please sign in to comment.