Fix empty VITE_API_URL falling back to localhost in production #9
@@ -1,4 +1,4 @@
|
||||
const API_BASE = import.meta.env.VITE_API_URL || 'http://localhost:3001';
|
||||
const API_BASE = import.meta.env.VITE_API_URL ?? 'http://localhost:3001';
|
||||
|
||||
let authToken: string | null = localStorage.getItem('ai-tycoon-auth-token');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user