zerobyte icon indicating copy to clipboard operation
zerobyte copied to clipboard

Hardcoded dev IP address in OpenAPI server configuration

Open tvarohohlavy opened this issue 1 week ago • 0 comments

Problem The OpenAPI server configuration uses a hardcoded IP address (192.168.2.42:4096), which causes issues for contributors.

When running bun run gen:api-client to regenerate the API client files contributors:

  • Can't regenerate the API client without modifying files or
  • Need to modify openapi-ts.config.ts locally to point to localhost and
  • Have to manually change the IP back before committing

Affected Files index.ts (source - hardcoded IP in OpenAPI spec) openapi-ts.config.ts (input URL for API generation) client.gen.ts (generated - inherits baseUrl) types.gen.ts (generated - inherits baseUrl)

Proposed Solution Change the hardcoded IP to localhost

tvarohohlavy avatar Dec 15 '25 16:12 tvarohohlavy