Skip to content

Commit 7c7e73e

Browse files
committed
Added extension change for firebase studio'
1 parent b97eab3 commit 7c7e73e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

packages/auth/src/core/util/handler.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ export async function _getRedirectUrl(
129129

130130
function getHandlerBase({ config }: AuthInternal): string {
131131
if (!config.emulator) {
132-
return `https://${config.authDomain}/${WIDGET_PATH}`;
132+
const path = `https://${config.authDomain}/${WIDGET_PATH}`;
133+
if(typeof process !== 'undefined' && process.env.FIREBASE_USE_HANDLER_EXT) {
134+
// Static servers require extensions to infer Content-Type
135+
return `${path}.html`;
136+
}
137+
return path;
133138
}
134139

135140
return _emulatorUrl(config, EMULATOR_WIDGET_PATH);

packages/data-connect/test/util.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ import {
2121
connectDataConnectEmulator,
2222
ConnectorConfig,
2323
DataConnect,
24-
getDataConnect
24+
executeMutation,
25+
getDataConnect,
26+
mutationRef
2527
} from '../src';
28+
import { removePost, removePostRef } from './dataconnect/connector/gen/web';
2629

2730
export const EMULATOR_PORT = process.env.DC_EMULATOR_PORT;
2831
const USE_EMULATOR = !!EMULATOR_PORT;

0 commit comments

Comments
 (0)