Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

update env

AykutSaracc759853cd279
diff --git a/.env.development b/.env.development
index 24f543bf..ced98e37 100644
--- a/.env.development
+++ b/.env.development
@@ -1,3 +1,3 @@
NEXT_PUBLIC_BASE_URL=http://localhost:3000
-NEXT_PUBLIC_ALTOGIC_ENV_URL=https://815e-4e5a.c5-na.altogic.com/
+NEXT_PUBLIC_ALTOGIC_ENV_URL=https://jsoncrack.c5-na.altogic.com
NEXT_PUBLIC_ALTOGIC_CLIENT_KEY=f1e92022789f4ccf91273a345ab2bdf8
\ No newline at end of file
diff --git a/.env.production b/.env.production
index 640b6655..4ddc3e1c 100644
--- a/.env.production
+++ b/.env.production
@@ -1,3 +1,3 @@
NEXT_PUBLIC_BASE_URL=https://jsoncrack.com
-NEXT_PUBLIC_ALTOGIC_ENV_URL=https://815e-4e5a.c5-na.altogic.com/
+NEXT_PUBLIC_ALTOGIC_ENV_URL=https://jsoncrack.c5-na.altogic.com
NEXT_PUBLIC_ALTOGIC_CLIENT_KEY=f1e92022789f4ccf91273a345ab2bdf8
\ No newline at end of file
diff --git a/src/api/interceptor.tsx b/src/api/interceptor.tsx
deleted file mode 100644
index cd04e87f..00000000
--- a/src/api/interceptor.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import axios from "axios";
-import toast from "react-hot-toast";
-
-const IS_DEVELOPMENT = process.env.NODE_ENV === "development";
-
-const HttpClient = axios.create({
- baseURL: IS_DEVELOPMENT ? "https://815e-4e5a.c5-na.altogic.com/" : "",
-});
-
-HttpClient.interceptors.response.use(
- response => response,
- error => {
- if (error.response.data?.errors) {
- error.response.data?.errors.forEach(err => toast.error(err.message));
- } else {
- toast.error("An unexpected error occured!");
- }
- return Promise.reject(false);
- }
-);
-
-export { HttpClient };
diff --git a/src/containers/Modals/CloudModal/index.tsx b/src/containers/Modals/CloudModal/index.tsx
index af4be29f..44456599 100644
--- a/src/containers/Modals/CloudModal/index.tsx
+++ b/src/containers/Modals/CloudModal/index.tsx
@@ -261,7 +261,8 @@ export const CloudModal: React.FC<ModalProps> = ({ visible, setVisible }) => {
<Modal.Controls setVisible={setVisible}>
<StyledInfoText>
<AiOutlineInfoCircle />
- Cloud Save feature is for ease-of-access only and recommended to not store sensitive data.
+ Cloud Save feature is for ease-of-access only and not recommended to store sensitive data,
+ we don&apos;t guarantee protection of your data.
</StyledInfoText>
</Modal.Controls>
</StyledModal>