From 26595b724f0a10c6ea51713a470393f3f75a05a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Mon, 20 Jul 2026 17:38:45 +0200 Subject: [PATCH] Serve compliance-portal instead of trust MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Embed and build @probo/compliance-portal for the /trust path and custom-domain SPA so production ships the v2 portal. Keep apps/trust in the repo for local use on port 5175; portal takes 5174. Signed-off-by: Émile Ré --- .env.example | 2 +- .github/workflows/make.yaml | 19 ++++++++------- .github/workflows/release-probod.yaml | 8 +++---- CHANGELOG.md | 2 +- GNUmakefile | 15 ++++++++---- apps/compliance-portal/complianceportal.go | 26 ++++++++++++++++++++ apps/compliance-portal/package.json | 2 +- apps/compliance-portal/vite.config.ts | 2 +- apps/trust/package.json | 2 +- apps/trust/vite.config.ts | 2 +- cmd/probod/CHANGELOG.md | 2 +- contrib/claude/release/README.md | 4 ++-- contrib/claude/release/probod.md | 12 +++++----- contrib/claude/sandbox.md | 28 +++++++++++----------- contrib/lima/README.md | 6 ++--- contrib/lima/provision.sh | 12 +++++----- contrib/lima/sandbox.sh | 6 ++--- pkg/server/trust/trust.go | 6 ++--- 18 files changed, 96 insertions(+), 60 deletions(-) create mode 100644 apps/compliance-portal/complianceportal.go diff --git a/.env.example b/.env.example index d9cb9aabe..9f97f7613 100644 --- a/.env.example +++ b/.env.example @@ -18,7 +18,7 @@ # ── Base URL & ports ────────────────────────────────────────────────── # PROBOD_BASE_URL=http://localhost:8080 # PROBOD_API_ADDR=:8080 -# PROBOD_API_CORS_ALLOWED_ORIGINS=http://localhost:8080,http://localhost:5173,http://localhost:5174 +# PROBOD_API_CORS_ALLOWED_ORIGINS=http://localhost:8080,http://localhost:5173,http://localhost:5174,http://localhost:5175 # PROBOD_TRUST_CENTER_HTTP_ADDR=:10080 # PROBOD_TRUST_CENTER_HTTPS_ADDR=:10443 diff --git a/.github/workflows/make.yaml b/.github/workflows/make.yaml index 3bef21f6c..82f8bbfb6 100644 --- a/.github/workflows/make.yaml +++ b/.github/workflows/make.yaml @@ -32,16 +32,16 @@ jobs: run: | npm --workspace @probo/console run check NODE_ENV=production npm --workspace @probo/console run build - - name: "Build trust" + - name: "Build compliance-portal" run: | - npm --workspace @probo/trust run check - NODE_ENV=production npm --workspace @probo/trust run build + npm --workspace @probo/compliance-portal run check + NODE_ENV=production npm --workspace @probo/compliance-portal run build - uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # v7 with: name: "frontend-apps" path: | apps/console/dist/ - apps/trust/dist/ + apps/compliance-portal/dist/ packages/emails/dist/ retention-days: 1 @@ -245,8 +245,9 @@ jobs: node: "false" - name: "Create placeholder dist files" run: | - mkdir -p apps/console/dist apps/trust/dist packages/emails/dist + mkdir -p apps/console/dist apps/compliance-portal/dist apps/trust/dist packages/emails/dist echo dev-server > apps/console/dist/index.html + echo dev-server > apps/compliance-portal/dist/index.html echo dev-server > apps/trust/dist/index.html echo dev-server > packages/emails/dist/placeholder - name: "Generate Go code" @@ -309,8 +310,9 @@ jobs: - uses: reviewdog/action-setup@d8a7baabd7f3e8544ee4dbde3ee41d0011c3a93f # v1.5.0 - name: "Create placeholder dist files" run: | - mkdir -p apps/console/dist apps/trust/dist packages/emails/dist + mkdir -p apps/console/dist apps/compliance-portal/dist apps/trust/dist packages/emails/dist echo dev-server > apps/console/dist/index.html + echo dev-server > apps/compliance-portal/dist/index.html echo dev-server > apps/trust/dist/index.html echo dev-server > packages/emails/dist/placeholder - name: "Generate Go code" @@ -369,7 +371,7 @@ jobs: env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - for dir in apps/console apps/trust packages/ui packages/eslint-config; do + for dir in apps/console apps/trust apps/compliance-portal packages/ui packages/eslint-config; do (cd "$dir" && npx eslint . --concurrency 4 --format stylish 2>/dev/null) | \ reviewdog -f=eslint -reporter=github-pr-review -filter-mode=nofilter -name="eslint ($dir)" || true done @@ -387,8 +389,9 @@ jobs: - uses: "./.github/actions/setup" - name: "Create placeholder dist files" run: | - mkdir -p apps/console/dist apps/trust/dist + mkdir -p apps/console/dist apps/compliance-portal/dist apps/trust/dist echo dev-server > apps/console/dist/index.html + echo dev-server > apps/compliance-portal/dist/index.html echo dev-server > apps/trust/dist/index.html - run: "npm --workspace @probo/emails run build" - run: "make test" diff --git a/.github/workflows/release-probod.yaml b/.github/workflows/release-probod.yaml index c444faf5d..91e4ad563 100644 --- a/.github/workflows/release-probod.yaml +++ b/.github/workflows/release-probod.yaml @@ -28,16 +28,16 @@ jobs: run: | npm --workspace @probo/console run check NODE_ENV=production npm --workspace @probo/console run build - - name: "Build trust" + - name: "Build compliance-portal" run: | - npm --workspace @probo/trust run check - NODE_ENV=production npm --workspace @probo/trust run build + npm --workspace @probo/compliance-portal run check + NODE_ENV=production npm --workspace @probo/compliance-portal run build - uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # v7 with: name: "frontend-apps" path: | apps/console/dist/ - apps/trust/dist/ + apps/compliance-portal/dist/ packages/emails/dist/ retention-days: 1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c9cd987b..f2a1c00e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ Each release track now keeps its own changelog. The history below 0.173.0 of the ## Per-track changelogs - `prb` (CLI) — [cmd/prb/CHANGELOG.md](cmd/prb/CHANGELOG.md) -- `probod` (server, including bundled `@probo/console`, `@probo/trust`, `@probo/ui`) — [cmd/probod/CHANGELOG.md](cmd/probod/CHANGELOG.md) +- `probod` (server, including bundled `@probo/console`, `@probo/compliance-portal`, `@probo/ui`) — [cmd/probod/CHANGELOG.md](cmd/probod/CHANGELOG.md) - `probod-bootstrap` — [cmd/probod-bootstrap/CHANGELOG.md](cmd/probod-bootstrap/CHANGELOG.md) - `@probo/n8n-nodes-probo` — [packages/n8n-node/CHANGELOG.md](packages/n8n-node/CHANGELOG.md) - `@probo/cookie-banner` — [packages/cookie-banner/CHANGELOG.md](packages/cookie-banner/CHANGELOG.md) diff --git a/GNUmakefile b/GNUmakefile index 1cc940285..1263b173f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -71,6 +71,7 @@ GENERATED= pkg/server/api/connect/v1/schema/schema.go \ pkg/server/api/mcp/v1/types/types.go EMBEDDED= apps/console/dist/index.html \ + apps/compliance-portal/dist/index.html \ apps/trust/dist/index.html \ @probo/emails @@ -94,7 +95,7 @@ ifdef WITH_APPS GENERATED += relay EMBEDDED += \ @probo/console \ - @probo/trust + @probo/compliance-portal endif .PHONY: all @@ -210,7 +211,7 @@ cfg/dev.yaml: bin/probod-bootstrap $(CFG_DEV_OAUTH2_KEY) compose/pebble/certs/ro PROBOD_AUTH_PASSWORD_PEPPER="this-is-a-secure-pepper-for-password-hashing-at-least-32-bytes"; \ PROBOD_AUTH_COOKIE_SECURE=false; \ PROBOD_OAUTH2_SERVER_SIGNING_KEY="$$($(CAT) $(CFG_DEV_OAUTH2_KEY))"; \ - PROBOD_API_CORS_ALLOWED_ORIGINS="http://localhost:8080,http://localhost:5173,http://localhost:5174"; \ + PROBOD_API_CORS_ALLOWED_ORIGINS="http://localhost:8080,http://localhost:5173,http://localhost:5174,http://localhost:5175"; \ PROBOD_PG_ADDR=localhost:5432; \ PROBOD_PG_USERNAME=postgres; \ PROBOD_PG_PASSWORD=postgres; \ @@ -333,6 +334,12 @@ pkg/server/api/trust/v1/schema.graphql: pkg/server/api/trust/v1/graphql $(TRUST_ $(NPM) --workspace $@ run check $(NPM) --workspace $@ run build +.PHONY: @probo/compliance-portal +@probo/compliance-portal: NODE_ENV=production +@probo/compliance-portal: relay + $(NPM) --workspace $@ run check + $(NPM) --workspace $@ run build + .PHONY: generate generate: $(GENERATED) @@ -385,7 +392,7 @@ fmt-go: ## Format Go code clean: ## Clean the project (node_modules and build artifacts) $(RM) -rf bin/* $(RM) -rf node_modules - $(RM) -rf apps/{console,trust}/{dist,node_modules} + $(RM) -rf apps/{console,trust,compliance-portal}/{dist,node_modules} $(RM) -rf packages/emails/{dist,node_modules} $(RM) -rf sbom-docker.json sbom.json $(RM) -rf coverage.out coverage.html coverage-e2e.out coverage-e2e.html coverage-combined.out coverage-combined.html @@ -433,7 +440,7 @@ compose/keycloak/probo-realm.json: compose/keycloak/probo-realm.json.tmpl compos -e "s|PRIVATE_KEY_PLACEHOLDER|$$(awk 'NR==1 {printf "%s", $$0; next} {printf "\\\\n%s", $$0}' compose/keycloak/certs/private-key.pem)|g" \ $@.tmpl > $@ -apps/console/dist/index.html apps/trust/dist/index.html: +apps/console/dist/index.html apps/compliance-portal/dist/index.html apps/trust/dist/index.html: $(MKDIR) $(dir $@) $(ECHO) dev-server > $@ diff --git a/apps/compliance-portal/complianceportal.go b/apps/compliance-portal/complianceportal.go new file mode 100644 index 000000000..8a7fbcf14 --- /dev/null +++ b/apps/compliance-portal/complianceportal.go @@ -0,0 +1,26 @@ +// Copyright (c) 2025-2026 Probo Inc . +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +package complianceportalstatics + +import "embed" + +//go:embed dist +var StaticFiles embed.FS diff --git a/apps/compliance-portal/package.json b/apps/compliance-portal/package.json index 00f00466a..25ff5f57e 100644 --- a/apps/compliance-portal/package.json +++ b/apps/compliance-portal/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite --port 5175", + "dev": "vite --port 5174", "build": "tsc -b && vite build", "check": "tsc --noEmit -p tsconfig.app.json", "preview": "vite preview" diff --git a/apps/compliance-portal/vite.config.ts b/apps/compliance-portal/vite.config.ts index 44abb0389..eb0cb1897 100644 --- a/apps/compliance-portal/vite.config.ts +++ b/apps/compliance-portal/vite.config.ts @@ -55,7 +55,7 @@ export default defineConfig({ }, base: "./", server: { - port: 5175, + port: 5174, proxy: { "^/trust/[^/]+/api": { target: "http://localhost:8080", diff --git a/apps/trust/package.json b/apps/trust/package.json index ef0f108f6..3d503247d 100644 --- a/apps/trust/package.json +++ b/apps/trust/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite --port 5174", + "dev": "vite --port 5175", "build": "tsc -b && vite build", "check": "tsc --noEmit -p tsconfig.app.json", "preview": "vite preview" diff --git a/apps/trust/vite.config.ts b/apps/trust/vite.config.ts index f443954f0..b32e5a4a1 100644 --- a/apps/trust/vite.config.ts +++ b/apps/trust/vite.config.ts @@ -39,7 +39,7 @@ export default defineConfig({ }, base: "./", server: { - port: 5174, + port: 5175, proxy: { "^/trust/[^/]+/api": { target: "http://localhost:8080", diff --git a/cmd/probod/CHANGELOG.md b/cmd/probod/CHANGELOG.md index ba9bf9b68..1775f5ffe 100644 --- a/cmd/probod/CHANGELOG.md +++ b/cmd/probod/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -All notable changes to `probod` (the server, including the bundled `@probo/console`, `@probo/trust`, and `@probo/ui` frontends) will be documented in this file. +All notable changes to `probod` (the server, including the bundled `@probo/console`, `@probo/compliance-portal`, and `@probo/ui` frontends) will be documented in this file. ## Unreleased diff --git a/contrib/claude/release/README.md b/contrib/claude/release/README.md index 2a8ba8cc5..14e970870 100644 --- a/contrib/claude/release/README.md +++ b/contrib/claude/release/README.md @@ -53,9 +53,9 @@ track's paths: git log $(git describe --tags --abbrev=0 --match='prb/v*')..HEAD --oneline \ -- cmd/prb pkg/cli pkg/cmd -# probod (server group: probod + console + trust + ui) +# probod (server group: probod + console + compliance-portal + ui) git log $(git describe --tags --abbrev=0 --match='probod/v*')..HEAD --oneline \ - -- cmd/probod apps/console apps/trust packages/ui pkg + -- cmd/probod apps/console apps/compliance-portal packages/ui pkg # probod-bootstrap git log $(git describe --tags --abbrev=0 --match='probod-bootstrap/v*')..HEAD --oneline \ diff --git a/contrib/claude/release/probod.md b/contrib/claude/release/probod.md index 720886b67..917e5eebe 100644 --- a/contrib/claude/release/probod.md +++ b/contrib/claude/release/probod.md @@ -1,8 +1,8 @@ # Release `probod` (server group) -This track ships `probod`, `@probo/console`, `@probo/trust`, and -`@probo/ui` together as the Docker image and accompanying binary archive. -They share the same version. +This track ships `probod`, `@probo/console`, `@probo/compliance-portal`, +and `@probo/ui` together as the Docker image and accompanying binary +archive. They share the same version. After confirming commits below, follow the [common steps](./README.md#3-common-steps-every-track). @@ -15,13 +15,13 @@ After confirming commits below, follow the - **Changelog**: `cmd/probod/CHANGELOG.md` (covers all four components) - **Files to stage**: `cmd/probod/VERSION`, `cmd/probod/CHANGELOG.md` - **Workflow**: `.github/workflows/release-probod.yaml` -- **Path filter**: `cmd/probod apps/console apps/trust packages/ui pkg` +- **Path filter**: `cmd/probod apps/console apps/compliance-portal packages/ui pkg` ## Detect commits ```shell git log $(git describe --tags --abbrev=0 --match='probod/v*')..HEAD --oneline \ - -- cmd/probod apps/console apps/trust packages/ui pkg + -- cmd/probod apps/console apps/compliance-portal packages/ui pkg ``` If empty or non-user-facing only, do not release this track. @@ -29,7 +29,7 @@ If empty or non-user-facing only, do not release this track. ## Notes The changelog covers changes across all four components (`probod`, -`@probo/console`, `@probo/trust`, `@probo/ui`). +`@probo/console`, `@probo/compliance-portal`, `@probo/ui`). CI builds the frontends and Go binaries, builds and pushes the multi-arch image to `artifact.probo.inc/probo/probo:v` (and diff --git a/contrib/claude/sandbox.md b/contrib/claude/sandbox.md index 0c4b89ea1..4e83f773b 100644 --- a/contrib/claude/sandbox.md +++ b/contrib/claude/sandbox.md @@ -34,11 +34,11 @@ make sandbox-delete After `make sandbox-status`, use the VM IP to access services from the host: -| Service | URL | -| ---------- | --------------------------- | -| Console | `http://:5173` | -| Trust | `http://:5174` | -| API | `http://:8080` | +| Service | URL | +| ------------------ | --------------------------- | +| Console | `http://:5173` | +| Compliance Portal | `http://:5174` | +| API | `http://:8080` | | Grafana | `http://:3001` | | Mailpit | `http://:8025` | | Keycloak | `http://:8082` | @@ -49,7 +49,7 @@ After `make sandbox-status`, use the VM IP to access services from the host: During provisioning, the sandbox automatically generates: - **`/etc/probod/config.yml`** — probod config with the VM IP as cookie domain, `secure: false`, and correct CORS origins -- **`apps/console/.env`** and **`apps/trust/.env`** — `VITE_API_URL` pointing to the VM IP +- **`apps/console/.env`** and **`apps/compliance-portal/.env`** — `VITE_API_URL` pointing to the VM IP Probod config is at `/etc/probod/config.yml`. @@ -70,18 +70,18 @@ This file is sourced during provisioning before `probod-bootstrap` runs. Any var The sandbox provisions four systemd services: -| Service | Description | Starts on boot | -| --------------- | ---------------------------------------------------------- | -------------- | -| `probo-stack` | Docker Compose stack (Postgres, SeaweedFS, Keycloak, etc.) | Yes | -| `probod` | Probo API server (depends on `probo-stack`) | No | -| `probo-console` | Console frontend dev server | No | -| `probo-trust` | Trust frontend dev server | No | +| Service | Description | Starts on boot | +| -------------------------- | ---------------------------------------------------------- | -------------- | +| `probo-stack` | Docker Compose stack (Postgres, SeaweedFS, Keycloak, etc.) | Yes | +| `probod` | Probo API server (depends on `probo-stack`) | No | +| `probo-console` | Console frontend dev server | No | +| `probo-compliance-portal` | Compliance portal frontend dev server | No | -`probo-stack` starts automatically when the VM boots. `probod`, `probo-console`, and `probo-trust` must be started manually after building. +`probo-stack` starts automatically when the VM boots. `probod`, `probo-console`, and `probo-compliance-portal` must be started manually after building. Manage them with `systemctl`: ```bash -./contrib/lima/sandbox.sh exec -- sudo systemctl start probod probo-console probo-trust +./contrib/lima/sandbox.sh exec -- sudo systemctl start probod probo-console probo-compliance-portal ./contrib/lima/sandbox.sh exec -- sudo systemctl stop probod ./contrib/lima/sandbox.sh exec -- sudo systemctl restart probod ./contrib/lima/sandbox.sh exec -- sudo systemctl status probod diff --git a/contrib/lima/README.md b/contrib/lima/README.md index e498601be..e438f0e92 100644 --- a/contrib/lima/README.md +++ b/contrib/lima/README.md @@ -22,12 +22,12 @@ brew install lima jq # Build the backend binary (probo-stack starts automatically on boot) ./contrib/lima/sandbox.sh exec -- make build -# Start probod, the console, and the trust dev servers -./contrib/lima/sandbox.sh exec -- sudo systemctl start probod probo-console probo-trust +# Start probod, the console, and the compliance-portal dev servers +./contrib/lima/sandbox.sh exec -- sudo systemctl start probod probo-console probo-compliance-portal # Access services from your host browser using the VM IP # e.g. http://192.168.105.2:5173 (console) -# e.g. http://192.168.105.2:5174 (trust) +# e.g. http://192.168.105.2:5174 (compliance-portal) # e.g. http://192.168.105.2:8080 (API) ``` diff --git a/contrib/lima/provision.sh b/contrib/lima/provision.sh index c5b9cb7d4..79211c604 100755 --- a/contrib/lima/provision.sh +++ b/contrib/lima/provision.sh @@ -141,7 +141,7 @@ cat > /etc/systemd/system/probo-node-modules.service << EOF [Unit] Description=Bind-mount VM-local node_modules over workspace DefaultDependencies=no -Before=probo-console.service probo-trust.service +Before=probo-console.service probo-compliance-portal.service [Service] Type=oneshot @@ -168,7 +168,7 @@ make -C /workspace generate WITH_APPS=1 make -C /workspace embed echo "VITE_API_URL=http://${VM_IP}:8080" > /workspace/apps/console/.env -echo "VITE_API_URL=http://${VM_IP}:8080" > /workspace/apps/trust/.env +echo "VITE_API_URL=http://${VM_IP}:8080" > /workspace/apps/compliance-portal/.env # Install systemd services for the sandbox cat > /etc/systemd/system/probo-stack.service << EOF @@ -229,9 +229,9 @@ RestartSec=3s WantedBy=multi-user.target EOF -cat > /etc/systemd/system/probo-trust.service << EOF +cat > /etc/systemd/system/probo-compliance-portal.service << EOF [Unit] -Description=Probo Trust Dev Server +Description=Probo Compliance Portal Dev Server Requires=probo-node-modules.service After=probo-node-modules.service probod.service @@ -239,7 +239,7 @@ After=probo-node-modules.service probod.service Type=simple User=${LIMA_USER} WorkingDirectory=/workspace -ExecStart=/usr/bin/npm --workspace @probo/trust run dev -- --host 0.0.0.0 +ExecStart=/usr/bin/npm --workspace @probo/compliance-portal run dev -- --host 0.0.0.0 Restart=on-failure RestartSec=3s @@ -249,4 +249,4 @@ EOF systemctl daemon-reload systemctl enable --now probo-stack.service -systemctl enable --now probod.service probo-console.service probo-trust.service +systemctl enable --now probod.service probo-console.service probo-compliance-portal.service diff --git a/contrib/lima/sandbox.sh b/contrib/lima/sandbox.sh index 7facb67e5..767fad3a1 100755 --- a/contrib/lima/sandbox.sh +++ b/contrib/lima/sandbox.sh @@ -128,9 +128,9 @@ cmd_status() { if [[ "${status}" == "Running" && -n "${ip}" ]]; then echo "" echo "Services (use VM IP to access from host):" - echo " Console: http://${ip}:5173" - echo " Trust: http://${ip}:5174" - echo " API: http://${ip}:8080" + echo " Console: http://${ip}:5173" + echo " Compliance Portal: http://${ip}:5174" + echo " API: http://${ip}:8080" echo " Grafana: http://${ip}:3001" echo " Mailpit: http://${ip}:8025" echo " Keycloak: http://${ip}:8082" diff --git a/pkg/server/trust/trust.go b/pkg/server/trust/trust.go index 5df5f8055..d6d8e73f9 100644 --- a/pkg/server/trust/trust.go +++ b/pkg/server/trust/trust.go @@ -28,7 +28,7 @@ import ( "io/fs" "net/http" - truststatics "go.probo.inc/probo/apps/trust" + complianceportalstatics "go.probo.inc/probo/apps/compliance-portal" "go.probo.inc/probo/pkg/server/statichandler" ) @@ -59,7 +59,7 @@ func NewServer(headDataFunc HeadDataFunc) (*Server, error) { } spaServer, err := statichandler.NewServer( - truststatics.StaticFiles, + complianceportalstatics.StaticFiles, "dist", gzipOptions, statichandler.WithFileRenderer("/index.html", renderer), @@ -72,7 +72,7 @@ func NewServer(headDataFunc HeadDataFunc) (*Server, error) { } func buildIndexRenderer(headDataFunc HeadDataFunc) (statichandler.FileRenderer, error) { - subFS, err := fs.Sub(truststatics.StaticFiles, "dist") + subFS, err := fs.Sub(complianceportalstatics.StaticFiles, "dist") if err != nil { return nil, fmt.Errorf("cannot open dist: %w", err) }