Switch backend to production API and adjust headers for auth
All checks were successful
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Successful in 1m12s

Updated the backend API URL to production across configurations and removed unused bearer security schemes in SDK. Introduced optional `authorization` headers in type definitions to handle authentication dynamically.
This commit is contained in:
2025-03-17 12:33:08 +01:00
parent ebfa57abc9
commit 479cb7ade8
5 changed files with 35 additions and 72 deletions

View File

@@ -1,8 +1,8 @@
import { defineConfig } from "@hey-api/openapi-ts";
import path from "path";
const API_URL =
process.env.NEXT_PUBLIC_BACKEND_API_URL || "http://localhost:8000";
const API_URL = "https://api.eventspace.pragmazest.com";
// process.env.NEXT_PUBLIC_BACKEND_API_URL || "http://localhost:8000";
const OPENAPI_URL = `${API_URL}/api/v1/openapi.json`;
const OUTPUT_DIR = path.resolve(__dirname, "./src/client");
// const OPENAPI_FILE = path.resolve(__dirname, './openapi.json');