Skip to content

fix(dashboard): substitute NEXT_PUBLIC_NHOST_LOGS_* URLs at container start - #5134

Merged
robertkasza merged 6 commits into
nhost:mainfrom
Nikhil-42:fix/dashboard-logs-url-placeholders
Nov 19, 2026
Merged

robertkasza merged 6 commits into
nhost:mainfrom
Nikhil-42:fix/dashboard-logs-url-placeholders

Conversation

@Nikhil-42

@Nikhil-42 Nikhil-42 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The dashboard image compiles placeholder values for its NEXT_PUBLIC_NHOST_* URLs and docker-entrypoint.sh replaces them with the container's environment at startup. NEXT_PUBLIC_NHOST_LOGS_GRAPHQL_URL and NEXT_PUBLIC_NHOST_LOGS_WEBSOCKET were missing from both, and always fell back to https://local.dashboard.local.nhost.run/v1/logs/graphql. With a custom subdomain or HTTP port the Logs page queried the wrong host and errored with Failed to fetch.

Adds the build-time placeholders and replaces them in the entrypoint.

Checklist

  • No breaking changes
  • Tests pass
  • New features have new tests (N/A)
  • Documentation is updated (N/A)
  • Title of the PR is in the correct format (see below)

The dashboard image compiles placeholder values for its NEXT_PUBLIC_NHOST_* URLs and
docker-entrypoint.sh replaces them with the container's environment at startup.
NEXT_PUBLIC_NHOST_LOGS_GRAPHQL_URL and NEXT_PUBLIC_NHOST_LOGS_WEBSOCKET were missing from
both, so the browser bundle kept process.env.NEXT_PUBLIC_NHOST_LOGS_*, which is undefined
client-side, and always fell back to https://local.dashboard.local.nhost.run/v1/logs/graphql.
With a custom subdomain or HTTP port the Logs page queried the wrong host and showed nothing.

Add both as build-time placeholders and replace them in the entrypoint. They default to
empty, which keeps the current fallback when they're unset.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@robertkasza
robertkasza force-pushed the fix/dashboard-logs-url-placeholders branch from f8ce95a to 569b14a Compare November 17, 2026 15:44
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Vercel Deployment Info - dashboard

@github-actions

Copy link
Copy Markdown
Contributor

@robertkasza
robertkasza merged commit 3b51b44 into nhost:main Nov 19, 2026
25 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants