seguimos implementando los secretos
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 26s

This commit is contained in:
2025-06-09 17:09:54 -06:00
parent d3c441eec6
commit ca56389a1e
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import axios from 'axios'; import axios from 'axios';
// forzar subida // forzar subida
const baseURL = import.meta.env.VITE_API_DB_URL || 'http://localhost:4000'; const baseURL = import.meta.env.VITE_API_DB_URL || window?.RUNTIME_CONFIG?.VITE_API_DB_URL || 'http://localhost:4000';
console.log(baseURL); console.log(baseURL);
const apiClient = axios.create({ const apiClient = axios.create({

View File

@@ -7,8 +7,8 @@ import App from './App.vue'
import './style.css' // Tailwind o tus estilos globales import './style.css' // Tailwind o tus estilos globales
console.log(`VITE_API_EVENTS_URL: ${import.meta.env.VITE_API_EVENTS_URL || 'no definida'}`); console.log(`VITE_API_EVENTS_URL: ${import.meta.env.VITE_API_EVENTS_URL || window?.RUNTIME_CONFIG?.VITE_API_EVENTS_URL || 'no definida'}`);
console.log(`VITE_API_DB_URL: ${import.meta.env.VITE_API_DB_URL || 'no definida'}`); console.log(`VITE_API_DB_URL: ${import.meta.env.VITE_API_DB_URL || window?.RUNTIME_CONFIG?.VITE_API_DB_URL || 'no definida'}`);
const app = createApp(App) const app = createApp(App)

View File

@@ -12,7 +12,7 @@ export const useRealtimeStore = defineStore('realtime', {
init() { init() {
if (this._sse) return; if (this._sse) return;
const eventosURL = import.meta.env.VITE_API_EVENTS_URL || '/events'; const eventosURL = import.meta.env.VITE_API_EVENTS_URL || window?.RUNTIME_CONFIG?.VITE_API_EVENTS_URL || '/events';
this._sse = new EventSource(eventosURL); this._sse = new EventSource(eventosURL);
this._sse.onopen = () => { this._sse.onopen = () => {