actualizando uso de secrets en UI
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
echo "window.RUNTIME_CONFIG = {" > /usr/share/nginx/html/config.js
|
||||
echo " VITE_API_EVENTS_URL: '${VITE_API_EVENTS_URL}'" >> /usr/share/nginx/html/config.js
|
||||
echo " VITE_API_DB_URL: '${VITE_API_DB_URL}'" >> /usr/share/nginx/html/config.js
|
||||
echo "};" >> /usr/share/nginx/html/config.js
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import axios from 'axios';
|
||||
// forzar subida
|
||||
|
||||
const baseURL = 'http://localhost:4000';
|
||||
// const baseURL = import.meta.env.API_BASE_URL || 'https://planilla.interno.com'
|
||||
const baseURL = import.meta.env.VITE_API_DB_URL || 'http://localhost:4000';
|
||||
console.log(baseURL);
|
||||
|
||||
const apiClient = axios.create({
|
||||
|
||||
@@ -7,7 +7,8 @@ import App from './App.vue'
|
||||
import './style.css' // Tailwind o tus estilos globales
|
||||
|
||||
|
||||
// console.log(`API_BASE_URL: ${API_BASE_URL}`);
|
||||
console.log(`VITE_API_EVENTS_URL: ${import.meta.env.VITE_API_EVENTS_URL || 'no definida'}`);
|
||||
console.log(`VITE_API_DB_URL: ${import.meta.env.VITE_API_DB_URL || 'no definida'}`);
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user