This commit is contained in:
2024-06-25 15:30:53 +05:00
parent e9fd427d50
commit f9aec64c99
5 changed files with 7 additions and 4 deletions
+2
View File
@@ -0,0 +1,2 @@
VITE_TEST_VAR=123
VITE_SERVER_API=http://192.168.56.1:3000
+2 -1
View File
@@ -1,4 +1,5 @@
const serverApi = "http://192.168.56.1:3000";
// const serverApi = "http://192.168.56.1:3000";
const serverApi = import.meta.env.VITE_SERVER_API;
const apartmentsApi = `${serverApi}/apartments`;
@@ -22,6 +22,7 @@ import SearchLoader from "./SearchLoader";
const LayoutOptions = () => {
const { apartments, setApartments } = useApartments();
const [isLoading, setIsLoading] = useState(false);
console.log("first", import.meta.env.VITE_TEST_VAR);
const { setModal } = useModal();
const {
-1
View File
@@ -1,3 +1,2 @@
PORT=3000
REFRESH_TOKEN=1000.da3146d49fa8a399f0c635e74954ff9c.e010dbb1bb605d7e1aa5bf7fc0521f8b
URL=
+1 -1
View File
@@ -1,5 +1,5 @@
import { Request, Response, NextFunction } from "express";
import { aparmentsApi, updateAccessTokenApi } from "../consts.js";
import { updateAccessTokenApi } from "../consts.js";
import { logger } from "../utils/logger.js";
var updateAccessToken = async function (req: Request, res: Response) {