fix: configure frontend services for environment API URLs

This commit is contained in:
2026-08-17 12:27:14 +00:00
parent 09e6c86ca0
commit 3e12fa2d01
5 changed files with 20 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
const BASE = '/api/employee'
const API_URL = import.meta.env.VITE_API_URL || ''
const BASE = `${API_URL}/api/employee`
function authHeaders() {
const token = localStorage.getItem('token')