.env
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
VITE_TEST_VAR=123
|
||||||
|
VITE_SERVER_API=http://192.168.56.1:3000
|
||||||
@@ -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`;
|
const apartmentsApi = `${serverApi}/apartments`;
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import SearchLoader from "./SearchLoader";
|
|||||||
const LayoutOptions = () => {
|
const LayoutOptions = () => {
|
||||||
const { apartments, setApartments } = useApartments();
|
const { apartments, setApartments } = useApartments();
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
console.log("first", import.meta.env.VITE_TEST_VAR);
|
||||||
|
|
||||||
const { setModal } = useModal();
|
const { setModal } = useModal();
|
||||||
const {
|
const {
|
||||||
|
|||||||
+1
-2
@@ -1,3 +1,2 @@
|
|||||||
PORT=3000
|
PORT=3000
|
||||||
REFRESH_TOKEN=1000.da3146d49fa8a399f0c635e74954ff9c.e010dbb1bb605d7e1aa5bf7fc0521f8b
|
REFRESH_TOKEN=1000.da3146d49fa8a399f0c635e74954ff9c.e010dbb1bb605d7e1aa5bf7fc0521f8b
|
||||||
URL=
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Request, Response, NextFunction } from "express";
|
import { Request, Response, NextFunction } from "express";
|
||||||
import { aparmentsApi, updateAccessTokenApi } from "../consts.js";
|
import { updateAccessTokenApi } from "../consts.js";
|
||||||
import { logger } from "../utils/logger.js";
|
import { logger } from "../utils/logger.js";
|
||||||
|
|
||||||
var updateAccessToken = async function (req: Request, res: Response) {
|
var updateAccessToken = async function (req: Request, res: Response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user