diff --git a/.env.production b/.env.production index b24605b..163dabf 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV="production" -NEXT_PUBLIC_SERVER_URL=https://api.vesmook.com -NEXT_PUBLIC_PUBLIC_URL=https://api.vesmook.com -NEXT_PUBLIC_API_URL=https://api.vesmook.com/api -NEXT_PUBLIC_STORAGE_URL=http://storage.vesmook.com +NEXT_PUBLIC_SERVER_URL=https://api.vesmeh.com +NEXT_PUBLIC_PUBLIC_URL=https://api.vesmeh.com +NEXT_PUBLIC_API_URL=https://api.vesmeh.com/api +NEXT_PUBLIC_STORAGE_URL=http://storage.vesmeh.com NEXT_PUBLIC_PACKAGE_VERSION=0.1.9 \ No newline at end of file diff --git a/components/AppsComponent/CheckoutData/page.jsx b/components/AppsComponent/CheckoutData/page.jsx index 6ef132f..a02c0a8 100644 --- a/components/AppsComponent/CheckoutData/page.jsx +++ b/components/AppsComponent/CheckoutData/page.jsx @@ -83,16 +83,18 @@ const CheckoutData = () => { }; const handleGoPayment = async () => { - const token = localStorage.getItem("token"); + const token = localStorage.getItem("token").slice(7); + + console.log(token); try { const data = await Chapar.post( - `${process.env.NEXT_PUBLIC_API_URL}/order/bag/payment/${checkOutData?.id}?paymentMethod=1`, + `${process.env.NEXT_PUBLIC_API_URL}/order/bag/payment/${checkOutData?.id}?paymentMethod=1&asccess_token=${token}` - { - headers: { - Authorization: token, - }, - } + // { + // headers: { + // Authorization: token, + // }, + // } ); router.push(data?.paymentUrl); diff --git a/components/LandingPage/HeroSection/page.jsx b/components/LandingPage/HeroSection/page.jsx index b714d47..93267b0 100644 --- a/components/LandingPage/HeroSection/page.jsx +++ b/components/LandingPage/HeroSection/page.jsx @@ -25,7 +25,7 @@ const HeroSection = () => { >
{" "} -
+
مراقبت پوست فروشگاه اینترنتی وسمه @@ -45,7 +45,7 @@ const HeroSection = () => { >
{" "} -
+
آرایش لب فروشگاه اینترنتی وسمه @@ -65,7 +65,7 @@ const HeroSection = () => { >
{" "} -
+
آرایش ناخن فروشگاه اینترنتی وسمه{" "} @@ -85,7 +85,7 @@ const HeroSection = () => { >
{" "} -
+
بهداشت جنسی فروشگاه اینترنتی وسمه @@ -105,7 +105,7 @@ const HeroSection = () => { >
{" "} -
+
آرایش چشم فروشگاه اینترنتی وسمه @@ -125,9 +125,9 @@ const HeroSection = () => { >
{" "} -
-
-
+
+
+
کرم پودر فروشگاه اینترنتی وسمه{" "}
diff --git a/next.config.js b/next.config.js index 9135059..2b45e70 100644 --- a/next.config.js +++ b/next.config.js @@ -2,11 +2,11 @@ const nextConfig = { reactStrictMode: false, // React Strict Mode is off images: { - domains: ["storage.vesmook.com"], + domains: ["storage.vesmeh.com"], remotePatterns: [ { protocol: "https", - hostname: "storage.vesmook.com", + hostname: "storage.vesmeh.com", }, ], },