-
+
{!username || username == "" ? (
@@ -176,10 +175,10 @@ export default function NavbarYamaha({ username, ...props }) {
}).then((res) => {
//if (res.ok) {
window.location.href = "../yamaha";
- /*}
- else{
+ // }
+ // else{
- }*/
+ // }
});
}}
>
diff --git a/config/apollo-config.js b/config/apollo-config.js
index 191e2ac..c6d9e29 100644
--- a/config/apollo-config.js
+++ b/config/apollo-config.js
@@ -1,6 +1,6 @@
// Apollo Value Configuration
const ApolloConfig = {
- graphql_uri: process.env.API_GRAPHQL_URI,
+ graphql_uri: process.env.NEXT_PUBLIC_API_GRAPHQL_URI,
};
export default ApolloConfig;
diff --git a/env-example b/env-example
index f861480..c099582 100644
--- a/env-example
+++ b/env-example
@@ -1,5 +1,4 @@
-API_URL=#STRAPI URL#
-API_GRAPHQL_URI=#STRAPI URL#/graphql
+NEXT_PUBLIC_API_GRAPHQL_URI=#STRAPI URL#/graphql
BACKEND_SERVER_URI =#STRAPI URL#
PORT=#PORT#
diff --git a/lib/apollo.js b/lib/apollo.js
index e5de7aa..5e4076e 100644
--- a/lib/apollo.js
+++ b/lib/apollo.js
@@ -51,7 +51,7 @@ async function query(query, token = "", variables = {}, cache = false) {
});
res = { STATUS: 1, DATA: sql.data };
} catch (e) {
- res = { STATUS: 0, DATA: errorHandler(e) };
+ res = { STATUS: 0, DATA: e.message };
}
return res;
}
@@ -68,8 +68,8 @@ async function mutation(mutation, token = "", variables = {}) {
});
res = { STATUS: 1, DATA: sql.data };
} catch (e) {
- console.log(e.networkError.result);
- res = { STATUS: 0, DATA: errorHandler(e) };
+ // console.log(mutation,e);
+ res = { STATUS: 0, DATA: e.message };
}
return res;
}
diff --git a/public/css/style.css b/public/css/style.css
index dec496a..698aa4c 100644
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -10630,12 +10630,22 @@ Footer CSS
}
.single-footer-widget ul.social-links li a.instagram {
- border-color: #231F20;
- color: #231F20;
+ border-color: #bb58aa;
+ color: #bb58aa;
}
.single-footer-widget ul.social-links li a.instagram:hover {
- background: #231F20;
+ background: #bb58aa;
+ color: #ffffff;
+}
+
+.single-footer-widget ul.social-links li a.youtube {
+ border-color: #cf3259;
+ color: #cf3259;
+}
+
+.single-footer-widget ul.social-links li a.youtube:hover {
+ background: #cf3259;
color: #ffffff;
}
diff --git a/public/css/style.scss b/public/css/style.scss
index 84d63ee..7694607 100644
--- a/public/css/style.scss
+++ b/public/css/style.scss
@@ -4909,11 +4909,20 @@ Shop Details CSS
}
}
&.instagram {
- border-color: #231F20;
- color: #231F20;
+ border-color: #bb58aa;
+ color: #bb58aa;
&:hover {
- background: #231F20;
+ background: #bb58aa;
+ color: $white-color;
+ }
+ }
+ &.youtube {
+ border-color: #cf3259;
+ color: #cf3259;
+
+ &:hover {
+ background: #cf3259;
color: $white-color;
}
}
diff --git a/server.js b/server.js
index 3225375..3ad5bb5 100644
--- a/server.js
+++ b/server.js
@@ -7,7 +7,6 @@ const app = next({ dev });
const handle = app.getRequestHandler();
// require("dotenv").config();
-console.log(process.env.PORT);
const port = process.env.PORT || "14009";
app.prepare().then(() => {