From 146ca07c9abb94827f7a952e6cdbd35728dbaf7b Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 27 May 2023 22:37:12 -0600 Subject: Usa variable de ambiente para URL de la API --- src/clients/api_client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/clients') diff --git a/src/clients/api_client.ts b/src/clients/api_client.ts index e544f16..6d328d6 100644 --- a/src/clients/api_client.ts +++ b/src/clients/api_client.ts @@ -2,7 +2,8 @@ import axios, { AxiosResponse } from "axios"; import Token from "../lib/token"; export class ApiClient { - readonly url = "http://localhost:3000/api"; + readonly url = import.meta.env.VITE_API_URL; + //readonly url = "http://localhost:3000/api"; public readonly token = new Token(); async authenticatedGet(path: string) { -- cgit v1.2.3