Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: storage of sensitive information in build artifact (#3491)

Rajat Dabade0fa0e64697cc
diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js
index f03b264435..84e9bf3b6a 100644
--- a/frontend/webpack.config.js
+++ b/frontend/webpack.config.js
@@ -18,7 +18,9 @@ const plugins = [
process: 'process/browser',
}),
new webpack.DefinePlugin({
- 'process.env': JSON.stringify(process.env),
+ 'process.env': JSON.stringify({
+ FRONTEND_API_ENDPOINT: process.env.FRONTEND_API_ENDPOINT,
+ }),
}),
];
diff --git a/frontend/webpack.config.prod.js b/frontend/webpack.config.prod.js
index 13fad223d5..d929118ba7 100644
--- a/frontend/webpack.config.prod.js
+++ b/frontend/webpack.config.prod.js
@@ -25,7 +25,9 @@ const plugins = [
process: 'process/browser',
}),
new webpack.DefinePlugin({
- 'process.env': JSON.stringify(process.env),
+ 'process.env': JSON.stringify({
+ FRONTEND_API_ENDPOINT: process.env.FRONTEND_API_ENDPOINT,
+ }),
}),
new MiniCssExtractPlugin(),
new Critters({