Skip to content

chore(ui): webpack dev server proxy to take context path from env variable#371

Merged
glasstiger merged 3 commits intomainfrom
devserver_context_path
Jan 9, 2025
Merged

chore(ui): webpack dev server proxy to take context path from env variable#371
glasstiger merged 3 commits intomainfrom
devserver_context_path

Conversation

@glasstiger
Copy link
Copy Markdown
Contributor

@glasstiger glasstiger commented Jan 8, 2025

When a context path is configured on server side, we can set an env var for dev server to set the same context path to be used by the proxy.

For example:

QDB_HTTP_CONTEXT_PATH=/instance2
export QDB_HTTP_CONTEXT_PATH
yarn workspace @questdb/web-console start

To get rid of the context path:

unset QDB_HTTP_CONTEXT_PATH
yarn workspace @questdb/web-console start

@glasstiger glasstiger requested a review from insmac January 8, 2025 19:36
insmac
insmac previously approved these changes Jan 9, 2025
Copy link
Copy Markdown
Contributor

@insmac insmac left a comment

Choose a reason for hiding this comment

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

Let's add info about QDB_HTTP_CONTEXT_PATH to README.md

@glasstiger
Copy link
Copy Markdown
Contributor Author

glasstiger commented Jan 9, 2025

Let's add info about QDB_HTTP_CONTEXT_PATH to README.md

updated doc.

@glasstiger glasstiger merged commit c23d571 into main Jan 9, 2025
@glasstiger glasstiger deleted the devserver_context_path branch January 9, 2025 18:08
Vaibhav91one pushed a commit to Vaibhav91one/ui that referenced this pull request Oct 28, 2025
…iable (questdb#371)

* chore(ui): webpack dev server proxy to take context path from env variable

* doc update

* doc update
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