Closed M0NsTeRRR closed 4 months ago
PR #276
The PR also contains a bug fix regarding hyperglass build id.
PS: I didn't wait for this feature to be accepted to implement it, as it's mandatory in my case. I will keep it in my fork if you don't want to implement it or merge my PR.
After digging more into it, I found that all content is copied to /static/ui
. I will open a new issue as I found some bugs in the build ID system.
Version
v2.0.4
Feature Details
To avoid rebuilding the application frontend, we need to mount a volume to
/opt/hyperglass/hyperglass/ui/out
. Unfortunately, Next.js tries to remove the folder instead of just deleting its content. An user shared a workaround: https://github.com/vercel/next.js/issues/59988#issuecomment-2181065230. With this workaround, for example by setting it tobuild/out
, we can mount a volume into/opt/hyperglass/hyperglass/ui/build
and let Next.js remove thebuild
directory without issue.HYPERGLASS_BUILD_ID
environment variable must be saved in out to keep BUILD ID when the container restart.Feature Type
Change to Existing Functionality
Use Case
Avoiding the rebuilding of JavaScript files when it is not needed will increase application restart speed.