Updated the task view and backend to handle more like a routine
This commit is contained in:
@@ -32,7 +32,7 @@ function loadEnv() {
|
||||
|
||||
loadEnv();
|
||||
|
||||
const targetIP = process.env.VITE_API_BASE ? process.env.VITE_API_BASE.replace('http://', '') : null;
|
||||
const targetIP = process.env.VITE_API_BASE ? process.env.VITE_API_BASE.replace('http://', '').replace(/\/+$/, '') : null;
|
||||
|
||||
if (!targetIP) {
|
||||
console.error('Error: VITE_API_BASE not found in frontend/.env. Please set it to the target device IP.');
|
||||
|
||||
Reference in New Issue
Block a user