Update API backend URLs from ngrok to seekright production server

This commit is contained in:
kawsik
2026-06-02 11:49:06 +05:30
parent b4acb8d1df
commit 3b2aa2ff95
5 changed files with 14 additions and 19 deletions

View File

@@ -15,17 +15,11 @@ import {
Play
} from 'lucide-react';
const API_BASE = 'https://culprit-campfire-galore.ngrok-free.dev'; // Target FastAPI central server in production VM
const API_BASE = 'http://rmm-backend.seekright.com'; // Target FastAPI central server in production VM
// Secure API fetch wrapper to automatically bypass ngrok's transitional browser warning page
// Secure API fetch wrapper
const apiFetch = (url, options = {}) => {
return fetch(url, {
...options,
headers: {
...options.headers,
'ngrok-skip-browser-warning': 'true'
}
});
return fetch(url, options);
};
function App() {

View File

@@ -5,7 +5,8 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
host: 'localhost',
port: 8080,
host: '0.0.0.0',
port: 4173,
allowedHosts: ["rmm.seekright.com"]
},
})