diff --git a/extension/dist.zip b/extension/dist.zip new file mode 100644 index 0000000..a2513fb Binary files /dev/null and b/extension/dist.zip differ diff --git a/extension/src/env.tsx b/extension/src/env.tsx index 79c36ed..06788c1 100644 --- a/extension/src/env.tsx +++ b/extension/src/env.tsx @@ -1,2 +1,2 @@ -export const API_SECRET_KEY = "surfsense" -export const BACKEND_URL = "http://127.0.0.1:8000" \ No newline at end of file +export const API_SECRET_KEY = "SURFSENSENGvKkWM2VwcIlfFTOz3HR7zB0E4pHFM4llbT3BlbkFJJ0Ood1rgtXbvEXq6Lf" +export const BACKEND_URL = "http://18.227.190.91:8000" \ No newline at end of file diff --git a/extension/src/pages/LoginForm.tsx b/extension/src/pages/LoginForm.tsx index f60edc9..903e970 100644 --- a/extension/src/pages/LoginForm.tsx +++ b/extension/src/pages/LoginForm.tsx @@ -1,6 +1,7 @@ import React, { useState } from "react"; import { goTo } from "react-chrome-extension-router"; import { Popup } from "../popup"; +import { BACKEND_URL } from "../env"; export const LoginForm = () => { const [username, setUsername] = useState(''); @@ -28,7 +29,7 @@ export const LoginForm = () => { formDetails.append('password', password); try { - const response = await fetch('http://localhost:8000/token', { + const response = await fetch(`${BACKEND_URL}/token`, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded',