We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4186359 commit bae9ce9Copy full SHA for bae9ce9
src/frameworks/index.ts
@@ -44,6 +44,8 @@ export const injectConfig = async (dist: string, framework: string, options: any
44
if (ssr) configScript += 'window.__FRAMEWORKS_SYNC_CLIENT_AUTH__=true;';
45
emulators.forEach(({port, host, name}) => {
46
configScript += `window.__${name.toUpperCase()}_EMULATOR_HOST__="${host}:${port}";`;
47
+ // I don't know what this is about, seems Firestore is mangling symbols... why they'd do that for globals I do not know
48
+ if (name === 'firestore') configScript += `window.__PRIVATE____FIRESTORE_EMULATOR_HOST__="${host}:${port}";`;
49
});
50
// TODO this is very fragile, how can we make this better?
51
// webpack plugin? this is only needed for client side
0 commit comments