Solucion build

This commit is contained in:
jorgemike
2025-04-04 10:24:58 -06:00
parent 2aac2488fd
commit f522db5211
2 changed files with 5 additions and 1 deletions
@@ -525,7 +525,7 @@ export default function AdminFormPage() {
)}
</div>
<Button onClick={guardarFormulario} color="success">
<Button onClick={guardarFormulario} color="success" disabled={loading}>
Guardar formulario
</Button>
</>
+4
View File
@@ -2,6 +2,10 @@ import axios from 'axios';
const API = process.env.NEXT_PUBLIC_API_URL;
if (!API) {
throw new Error('ERROR is not defined');
}
const axiosInstance = axios.create({
baseURL: API, // Replace with your API base URL
timeout: 100000, // Request timeout in milliseconds