Skip to content

Fix prod-mode UI startup and increase dev token lifespan#66

Merged
sei-awelle merged 2 commits intomainfrom
fix/serve-json-path
Apr 15, 2026
Merged

Fix prod-mode UI startup and increase dev token lifespan#66
sei-awelle merged 2 commits intomainfrom
fix/serve-json-path

Conversation

@sei-awelle
Copy link
Copy Markdown
Contributor

Summary

  • Fix serve.json path in prod-mode UI startup — npx serve resolves -c config relative to the content directory, not the working directory, so serve.json was not being found. Write it into the dist path instead.
  • Increase Keycloak realm access token lifespan from 5 minutes to 30 minutes for dev environment to reduce frequent re-authentication during Swagger testing.

Test plan

  • All prod-mode UIs start successfully (Player, VM, Console, CITE, etc.)
  • Auth-callback-silent still works (clean URLs disabled via serve.json)
  • Swagger tokens last 30 minutes instead of 5

npx serve resolves -c config path relative to the content directory,
not the working directory. Writing serve.json to the project root
caused serve to look for it at dist/serve.json (or dist/browser/serve.json)
and fail. Write it to the dist path instead.
Bump realm-level accessTokenLifespan from 300s (5 min) to 1800s
(30 min). The short default causes frequent token expiration during
Swagger testing and development workflows.
@sei-awelle sei-awelle requested a review from a team as a code owner April 8, 2026 14:54
@sei-awelle sei-awelle merged commit 618eceb into main Apr 15, 2026
1 check passed
@sei-awelle sei-awelle deleted the fix/serve-json-path branch April 15, 2026 12:28
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