seguimos implementando los secretos
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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 = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user