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

🦋 Changeset detected

Latest commit: 81847d3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/app Minor
@hyperdx/api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another 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

.env Outdated
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 9, 2025 5:12pm

@wrn14897
Copy link
Member

wrn14897 commented Oct 7, 2025

@datnguyennnx Let me know if you’ve had a chance to review those comments. We’d love to get this PR merged this week.

@datnguyennnx
Copy link
Author

Apologies for the delay in my response. @wrn14897

I've now updated the configurations for both NGINX and Traefik to handle the subpath routing at the proxy layer, aligning with the architectural direction we discussed. I also updated the proxy/README.md to reflect these changes and provide clear instructions.

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