Added .env file
This commit is contained in:
parent
b17cf25970
commit
652a3b56d7
1
frontend/.env.example
Normal file
1
frontend/.env.example
Normal file
@ -0,0 +1 @@
|
||||
EXPO_PUBLIC_API_URL=http://10.69.1.137:6060/api/v1
|
2
frontend/.gitignore
vendored
2
frontend/.gitignore
vendored
@ -33,3 +33,5 @@ yarn-error.*
|
||||
|
||||
# typescript
|
||||
*.tsbuildinfo
|
||||
|
||||
.env
|
@ -2,7 +2,7 @@ import { createContext, useContext, useEffect, useState } from "react";
|
||||
import storageUtil from "./storage";
|
||||
|
||||
const TOKEN_KEY = "my-jwt";
|
||||
export const API_URL = "http://10.69.1.137:6060/api/v1";
|
||||
export const API_URL = process.env.EXPO_PUBLIC_API_URL;
|
||||
const AuthContext = createContext(null);
|
||||
|
||||
export function useAuth() {
|
||||
|
Loading…
Reference in New Issue
Block a user