Skip to content

Conversation

@binarycat0
Copy link
Contributor

  • Removed Vite dev server proxy configuration
  • Removed nginx proxy from Docker setup
  • Updated API client to use absolute URLs
  • Updated README with Quarkus CORS configuration options

- Removed Vite dev server proxy configuration
- Removed nginx proxy from Docker setup
- Updated API client to use absolute URLs
- Updated README with Quarkus CORS configuration options
Copy link

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I run locally (with Vite) and try to log in, the UI shows Request failed with status code 404.

Note: the UI still attempts to do POST http://localhost:5173/api/catalog/v1/oauth/tokens ... is that expected?

// This avoids CORS issues by proxying requests through the server
// The server.ts proxy handles /api routes in production, and Vite handles them in development
const TOKEN_URL = "/api/catalog/v1/oauth/tokens"
const TOKEN_URL = `${config.POLARIS_API_URL}/api/catalog/v1/oauth/tokens`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this whole endpoint is deprecated in the Iceberg REST API spec, which is apparently what defines the URI suffix here.

I believe it is preferable to make the whole URI configurable and avoid assuming a particular suffix.

Since it's not a material change in this PR, this can be addressed later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants