diff --git a/configs/emulator-http.json b/configs/emulator-http.json new file mode 100644 index 000000000..266681ce9 --- /dev/null +++ b/configs/emulator-http.json @@ -0,0 +1,3 @@ +{ + "EMULATOR_ENDPOINT": "http://localhost:8081" +} \ No newline at end of file diff --git a/src/ConfigContext.ts b/src/ConfigContext.ts index 64f1f71dd..113a6d5e5 100644 --- a/src/ConfigContext.ts +++ b/src/ConfigContext.ts @@ -259,4 +259,3 @@ export async function initializeConfiguration(): Promise { } export { configContext }; - diff --git a/src/Utils/EndpointUtils.ts b/src/Utils/EndpointUtils.ts index 3172deed3..c0617ec17 100644 --- a/src/Utils/EndpointUtils.ts +++ b/src/Utils/EndpointUtils.ts @@ -131,7 +131,7 @@ export const CassandraProxyOutboundIPs: { [key: string]: string[] } = { [CassandraProxyEndpoints.Mooncake]: ["40.73.99.146", "143.64.62.47"], }; -export const allowedEmulatorEndpoints: ReadonlyArray = ["https://localhost:8081"]; +export const allowedEmulatorEndpoints: ReadonlyArray = ["https://localhost:8081","http://localhost:8081"]; export const allowedMongoBackendEndpoints: ReadonlyArray = ["https://localhost:1234"]; diff --git a/webpack.config.js b/webpack.config.js index c21baf3ef..a94f34c6a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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()); }