diff options
author | HombreLaser <sebastian-440@live.com> | 2023-05-27 22:37:12 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-05-27 22:37:12 -0600 |
commit | 146ca07c9abb94827f7a952e6cdbd35728dbaf7b (patch) | |
tree | 7d6ad903b5dc4119002c5386a43362484df085ca /src | |
parent | f257d3c7e22f929965e71e5eec4c2ec5254e696f (diff) |
Usa variable de ambiente para URL de la API
Diffstat (limited to 'src')
-rw-r--r-- | src/clients/api_client.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |