The browser hub is a status/metadata reader for an instance, separate from the operator console and its owner cookies. Build it as its own Preact bundle at /hub/ outside the owner gate, embed it via //go:embed all:hub/dist (with a committed index placeholder so a clean checkout still builds), and apply a strict CSP because it shares the console origin. The Docker build stages the hub build alongside the console; dist assets remain ignored.
12 lines
273 B
Plaintext
12 lines
273 B
Plaintext
# Block local frontend development packages and compilation builds
|
|
src/frontend/node_modules/
|
|
src/frontend/dist/
|
|
src/frontend/.vite/
|
|
src/hub/node_modules/
|
|
src/hub/dist/
|
|
src/hub/.vite/
|
|
|
|
# Block compiled native Go binary targets and testing outputs
|
|
src/Maestro
|
|
**/*.log
|
|
.git/ |