openapi-nodejs-sdk icon indicating copy to clipboard operation
openapi-nodejs-sdk copied to clipboard

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

Open francescobianco opened this issue 1 year ago • 0 comments

šŸ—ļø 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",
});

francescobianco avatar Nov 09 '25 14:11 francescobianco