Skip to content

Hardcoded base URL prevents multi-environment deployment (Vercel / Docker) #10

@francescobianco

Description

@francescobianco

🏗️ Hardcoded base URL prevents multi-environment deployment

Labels: config, enhancement, env
Framework context: Docker + Vercel deployments

Description:
The SDK has a hardcoded base URL (e.g., https://api.openapi.com).
It’s impossible to dynamically switch between staging (sandbox.openapi.com) and production environments.

Expected behavior:
Allow runtime configuration via environment variables:

Openapi.configure({
  baseUrl: process.env.OPENAPI_URL || "https://api.openapi.com",
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    configdocumentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions