Skip to content

Conversation

datnguyennnx
Copy link

Introduce the new flag NEXT_PUBLIC_BASEPATH to simplify subpath configuration for HyperDX deployments. Builds on the flexible basePath config added in [PR #1188], making it easier to handle frontend routing under custom subpaths using an environment variable. Proxy configuration examples for nginx and Traefik will also be provided for reference.

Copy link

changeset-bot bot commented Oct 3, 2025

⚠️ No Changeset found

Latest commit: ef5adac

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Oct 3, 2025

@datnguyennnx is attempting to deploy a commit to the HyperDX Team on Vercel.

A member of the Team first needs to authorize it.

HYPERDX_LOG_LEVEL=debug
EXPRESS_SESSION_SECRET="hyperdx is cool 👋"
FRONTEND_URL="http://localhost:${HYPERDX_APP_PORT}"
FRONTEND_URL="http://localhost:4040/hyperdx"
Copy link
Member

Choose a reason for hiding this comment

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

we don't need to update this unless devs want to test out the proxy

});

module.exports = {
basePath: process.env.HYPERDX_BASE_PATH || '',
Copy link
Member

@wrn14897 wrn14897 Oct 3, 2025

Choose a reason for hiding this comment

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

Let's call it NEXT_PUBLIC_BASE_PATH. We also need to verify if this works on production build

HYPERDX_APP_URL=http://localhost
HYPERDX_LOG_LEVEL=debug
HYPERDX_OPAMP_PORT=4320
HYPERDX_BASE_PATH=/hyperdx
Copy link
Member

Choose a reason for hiding this comment

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

Let's roll this back since it affects prod

@@ -0,0 +1,35 @@
http:
Copy link
Member

@wrn14897 wrn14897 Oct 3, 2025

Choose a reason for hiding this comment

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

Can you add a README file to proxy directory to explain what it’s about? It would also be helpful to mention NEXT_PUBLIC_BASE_PATH and FRONTEND_URL env vars

Copy link

vercel bot commented Oct 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
hyperdx-v2-oss-app Ready Ready Preview Comment Oct 3, 2025 5:15pm

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