diff --git a/components/auth/components-auth-login-form.tsx b/components/auth/components-auth-login-form.tsx index 5a0a532..c9e1995 100644 --- a/components/auth/components-auth-login-form.tsx +++ b/components/auth/components-auth-login-form.tsx @@ -34,7 +34,7 @@ const ComponentsAuthLoginForm = () => { setLoading(true); try { - const res = await axios.post('http://localhost:3020/api/auth/login', formData); + const res = await axios.post('https://api.crawlerx.co/api/auth/login', formData); // ✅ Assuming backend returns token const data = res.data; diff --git a/components/auth/components-auth-register-form.tsx b/components/auth/components-auth-register-form.tsx index bb61daf..00647e7 100644 --- a/components/auth/components-auth-register-form.tsx +++ b/components/auth/components-auth-register-form.tsx @@ -34,7 +34,7 @@ const ComponentsAuthRegisterForm = () => { try { // ✅ Send POST request via Axios - const response = await axios.post('http://localhost:3020/api/auth/signup', { + const response = await axios.post('https://api.crawlerx.co/api/auth/signup', { name: form.name, email: form.email, password: form.password, diff --git a/components/auth/components-auth-unlock-form.tsx b/components/auth/components-auth-unlock-form.tsx index 487aed3..74cc36b 100644 --- a/components/auth/components-auth-unlock-form.tsx +++ b/components/auth/components-auth-unlock-form.tsx @@ -35,7 +35,7 @@ const ComponentsAuthChangePasswordForm = () => { // 👉 Axios call with Bearer token const res = await axios.post( - `http://localhost:3020/api/auth/change-password`, + `https://api.crawlerx.co/api/auth/change-password`, formData, { headers: { diff --git a/package-lock.json b/package-lock.json index 75874fc..2215157 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "CrawlerX", + "name": "crawlerx", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "CrawlerX", + "name": "crawlerx", "version": "0.1.0", "dependencies": { "@emotion/react": "^11.10.6",