+ {/* Sidebar no debe encogerse */}
+
+
+
+
+ {/* min-w-0: evita que páginas anchas (tablas) empujen el layout */}
+
+
{renderPage()}
diff --git a/src/api/projects.ts b/src/api/projects.ts
index 755cbec..78cfac4 100644
--- a/src/api/projects.ts
+++ b/src/api/projects.ts
@@ -3,8 +3,9 @@ export const PROJECTS_API_URL = `${API_BASE_URL}/api/v3/data/ppfu31vhv5gf6i0/m05
const API_TOKEN = import.meta.env.VITE_API_TOKEN;
export const getAuthHeaders = () => ({
- Authorization: `Bearer ${API_TOKEN}`,
"Content-Type": "application/json",
+ "xc-token": API_TOKEN, // NocoDB style
+ Authorization: `Bearer ${API_TOKEN}`, // fallback por si el backend usa Bearer
});
export interface ProjectRecord {
diff --git a/vite.config.ts b/vite.config.ts
index ef01ba3..03f23ba 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -2,16 +2,12 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
-// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
-
server: {
- allowedHosts: [
- "localhost",
- "127.0.0.1",
- "reyna-compressive-shaunna.ngrok-free.dev",
- ],
+ host: true, // expone en 0.0.0.0
+ allowedHosts: "all", // permite dominios como *.ngrok-free.dev
port: 5173,
+ strictPort: true, // no brinca de puerto
},
-});
+});
\ No newline at end of file
+
+
+
+ {/* Scroll solo aquí */}
+