diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..6f3a291
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "liveServer.settings.port": 5501
+}
\ No newline at end of file
diff --git a/package.json b/package.json
index 39bd0c7..16c67af 100644
--- a/package.json
+++ b/package.json
@@ -48,16 +48,8 @@
"react-app/jest"
]
},
- "browserslist": {
- "production": [
- ">0.2%",
- "not dead",
- "not op_mini all"
- ],
- "development": [
- "last 1 chrome version",
- "last 1 firefox version",
- "last 1 safari version"
- ]
- }
+ "browserslist": [
+ "defaults",
+ "not ie 11"
+ ]
}
diff --git a/src/client/config.ts b/src/client/config.ts
index 7964b79..cf36c66 100644
--- a/src/client/config.ts
+++ b/src/client/config.ts
@@ -1 +1 @@
-export const origin = 'https://dev2.akarpov.ru/'
\ No newline at end of file
+export const origin = 'https://0e06-92-100-146-65.ngrok-free.app/'
\ No newline at end of file
diff --git a/src/consts.tsx b/src/consts.tsx
index a6ca788..5fdea72 100644
--- a/src/consts.tsx
+++ b/src/consts.tsx
@@ -7,9 +7,18 @@ import axios from "axios";
// });
-export const backend = axios.create({
+export let backend = axios.create({
baseURL: 'https://0e06-92-100-146-65.ngrok-free.app/api/',
timeout: 100000,
headers: {'Authorization': 'Bearer ' + localStorage.getItem('token')}
}
-)
\ No newline at end of file
+)
+
+export const updateBackend = () =>{
+ backend = axios.create({
+ baseURL: 'https://0e06-92-100-146-65.ngrok-free.app/api/',
+ timeout: 100000,
+ headers: {'Authorization': 'Bearer ' + localStorage.getItem('token')}
+ }
+ )
+}
\ No newline at end of file
diff --git a/src/pages/Login/index.tsx b/src/pages/Login/index.tsx
index e5d9a95..f125745 100644
--- a/src/pages/Login/index.tsx
+++ b/src/pages/Login/index.tsx
@@ -25,6 +25,7 @@ export const Login: react.FC = () => {