forked from fr/deguapp
		
	Added .env file
This commit is contained in:
		
							
								
								
									
										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
 | 
					# typescript
 | 
				
			||||||
*.tsbuildinfo
 | 
					*.tsbuildinfo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.env
 | 
				
			||||||
@@ -2,7 +2,7 @@ import { createContext, useContext, useEffect, useState } from "react";
 | 
				
			|||||||
import storageUtil from "./storage";
 | 
					import storageUtil from "./storage";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const TOKEN_KEY = "my-jwt";
 | 
					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);
 | 
					const AuthContext = createContext(null);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function useAuth() {
 | 
					export function useAuth() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user