Dashboard} />
-
+ {/* */}
diff --git a/geochart/src/routes/Home.js b/geochart/src/routes/Home.js
index e4dc45fa..d30ba5cc 100644
--- a/geochart/src/routes/Home.js
+++ b/geochart/src/routes/Home.js
@@ -15,7 +15,7 @@ const Home = () => {
}
if (error) {
- return Execution failed; {error}
;
+ return Execution failed; {error.toString()}
;
}
if (result) {
@@ -28,7 +28,6 @@ const Home = () => {
population: parseInt(slice.rawData()[0]),
density: parseInt(slice.rawData()[1]),
}));
- console.log(data);
return ;
}
diff --git a/geochart/src/setupProxy.js b/geochart/src/setupProxy.js
deleted file mode 100644
index 31422387..00000000
--- a/geochart/src/setupProxy.js
+++ /dev/null
@@ -1,44 +0,0 @@
-const proxy = require("http-proxy-middleware");
-
-require("@babel/register")({
- presets: ["@babel/preset-typescript", "@babel/preset-env"],
- plugins: ["add-module-exports"],
- extensions: [".ts", ".js"],
-});
-
-const constants = require("./constants");
-
-const domain = constants.backend;
-module.exports = function(app) {
- app.use(
- proxy("/gdc", {
- changeOrigin: true,
- cookieDomainRewrite: "localhost",
- secure: false,
- target: domain,
- headers: {
- host: domain.replace(/https:\/\//, ""),
- origin: null,
- // This is essential for Tiger backends. To ensure 401 flies when not authenticated and using proxy
- "X-Requested-With": "XMLHttpRequest",
- },
- onProxyReq: function(proxyReq, _req, _res) {
- proxyReq.setHeader("accept-encoding", "identity");
- },
- }),
- );
- app.use(
- proxy("/*.html", {
- changeOrigin: true,
- secure: false,
- target: domain,
- }),
- );
- app.use(
- proxy("/packages/*.{js,css}", {
- changeOrigin: true,
- secure: false,
- target: domain,
- }),
- );
-};