Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to dev server configuration #292

Merged
merged 3 commits into from
Jan 17, 2024

Conversation

phantomjinx
Copy link
Member

@phantomjinx phantomjinx commented Jan 12, 2024

Talking with @mmelko, it became apparent that the original commit that added the /online prefix to the devServer only seemed to half-work and failed entirely to find the /login page when the environment was configured for form mode. So this reverts that setup but keep /online as the prefix when the project is built for installation.

Encountered an error when testing on OpenShift that had the authclient.sh script being executed too soon.

@phantomjinx phantomjinx self-assigned this Jan 12, 2024
Copy link
Contributor

@mmelko mmelko left a comment

Choose a reason for hiding this comment

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

one comment otherwise LGTM

packages/online-shell/webpack.config.dev.js Outdated Show resolved Hide resolved
@mmelko
Copy link
Contributor

mmelko commented Jan 17, 2024

Tested with CRC and works as expected.

* Cannot get the basepath to be respected by the devServer when trying to
  redirect to the form /login address. Just cannot find the exact recipe
  for configuring the devServer to correctly passthrough the /login to
  the app

* Keeps the /online basepath for the production compilation
* The oauthclient script looks for the installed openshift route so must be
  installed after the deployment has been applied
@phantomjinx phantomjinx merged commit a781231 into hawtio:main Jan 17, 2024
3 checks passed
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.

3 participants