agregado el config.js a la pagina
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
</head>
|
||||
<body class="min-h-screen flex flex-col bg-gray-100 text-gray-900 antialiased">
|
||||
<div id="app" class="flex-1 flex flex-col"></div>
|
||||
<script src="/config.js"></script>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -10,6 +10,9 @@ import './style.css' // Tailwind o tus estilos globales
|
||||
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 || window?.RUNTIME_CONFIG?.VITE_API_DB_URL || 'no definida'}`);
|
||||
|
||||
const apiBaseURL =
|
||||
import.meta.env.VITE_API_DB_URL || window?.RUNTIME_CONFIG?.VITE_API_DB_URL || 'no definida';
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
const pinia = createPinia()
|
||||
|
||||
Reference in New Issue
Block a user