ClickHouse / ClickHouse/ClickStack-helm-charts

Feature Request: Support custom basePath (subpath deployment) for HyperDX UI

Open
#116 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
75
Forks
54
Avg merge
3d 19h
Merged PRs (30d)
7

Description

### Description
Currently, the HyperDX UI is deployed assuming access at the root ("/") path. In deployments behind a reverse proxy or ingress under a subpath (e.g., `https://example.com/observe/`), asset paths like `/_next/static/...` break, causing UI rendering issues.

### Proposal
Add Helm chart support to configure a custom base path, such as:

```yaml
hyperdx:
basePath: "/observe"
```

### This would:

- Set the Next.js basePath and assetPrefix appropriately.
- Adjust redirect logic to use the configured subpath.
- Allow the application to function correctly when served under paths other than /.

### Justification

Many deployments are used behind reverse proxies with path-based routing. In these scenarios, being able to configure a custom base path is essential to ensure that the UI works as expected. This functionality would be highly appreciated by users who need to integrate HyperDX alongside other services on the same domain.

### References

Next.js basePath documentation: https://nextjs.org/docs/pages/api-reference/next-config-js/basePath

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.