From 9ee94a44cce99ee7fcb2cff8a5bf631ec2171cc7 Mon Sep 17 00:00:00 2001 From: rahmathidayatullah Date: Mon, 10 Jun 2024 12:44:22 +0700 Subject: [PATCH] fix url api --- .env | 2 +- src/components/wrapper/layout-home.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 01347bc..bb16163 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -REACT_APP_API_URL=https://i-mader.tech +NEXT_PUBLIC_API_URL=https://i-mader.tech NEXT_PUBLIC_MEASUREMENT_ID=G-3FNP2LS55J \ No newline at end of file diff --git a/src/components/wrapper/layout-home.tsx b/src/components/wrapper/layout-home.tsx index 0eafbfb..6b17162 100644 --- a/src/components/wrapper/layout-home.tsx +++ b/src/components/wrapper/layout-home.tsx @@ -191,7 +191,7 @@ const LayoutHome = ({ children }: LayoutHome) => { try { setLoading(true); const { data } = await axios.post( - `${process.env.REACT_APP_API_URL}/api/v1/contact-us/add`, + `${process.env.NEXT_PUBLIC_API_URL}/api/v1/contact-us/add`, values ); form.resetFields();