agregando logers de env variables
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 25s
build-and-deploy / deploy (push) Successful in 41s

This commit is contained in:
2025-06-06 15:11:18 -06:00
parent b751cb2911
commit 05ee5b46fc
4 changed files with 14 additions and 1 deletions

View File

@@ -12,6 +12,11 @@ dotenv.config();
console.log(`Environment: ${process.env.NODE_ENV || 'development'}`);
console.log(`MCP URL: ${process.env.MCP_URL || 'http://localhost:5000/mcp'}`);
console.log(`Gemini API Key: ${process.env.GEMINI_API_KEY ? '***' : 'not set'}`);
const PORT = Number(process.env.PORT) || 8001;

View File

@@ -9,6 +9,11 @@ import asistenciasRouter from './routes/asistencias/asistencias.js';
import tareasRouter from './routes/tareas/tareas.js';
import planillasRouter from './routes/planillas/planillas.js';
console.log( `Conectando a la base de datos: ${process.env.DATABASE_URL}`);
// Helper function for logging duration
const getDurationInMilliseconds = (start) => {
const NS_PER_SEC = 1e9;

View File

@@ -3,6 +3,9 @@ import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/
import express from "express";
import { createServer } from "./createServer.js";
console.log('este no tiene variables de entorno, es un servidor MCP Planilla');
async function main() {
const useStdio = process.argv.includes("--stdio");
if (useStdio) {

View File

@@ -6,7 +6,7 @@ import App from './App.vue'
import './style.css' // Tailwind o tus estilos globales
console.log(`API_BASE_URL: ${API_BASE_URL}`);
const app =
createApp(App)