feat: enable http emulator support

This commit is contained in:
Chris Anderson
2024-10-10 23:15:50 +00:00
parent d9d90ac6d9
commit fc774e1089
4 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
{
"EMULATOR_ENDPOINT": "http://localhost:8081"
}

View File

@@ -259,4 +259,3 @@ export async function initializeConfiguration(): Promise<ConfigContext> {
}
export { configContext };

View File

@@ -131,7 +131,7 @@ export const CassandraProxyOutboundIPs: { [key: string]: string[] } = {
[CassandraProxyEndpoints.Mooncake]: ["40.73.99.146", "143.64.62.47"],
};
export const allowedEmulatorEndpoints: ReadonlyArray<string> = ["https://localhost:8081"];
export const allowedEmulatorEndpoints: ReadonlyArray<string> = ["https://localhost:8081","http://localhost:8081"];
export const allowedMongoBackendEndpoints: ReadonlyArray<string> = ["https://localhost:1234"];

View File

@@ -192,6 +192,12 @@ module.exports = function (_env = {}, argv = {}) {
new EnvironmentPlugin(envVars),
];
if(process.env.EXPLORER_CONFIG_PATH) {
plugins.push(new CopyWebpackPlugin({
patterns: [{ from: process.env.EXPLORER_CONFIG_PATH, to: "config.json" }]
}));
}
if (argv.analyze) {
plugins.push(new BundleAnalyzerPlugin());
}