Skip to content

Web UI broken in 0.9.0: WASM/JS files missing from Docker image #124

@r-3110

Description

@r-3110

Description

The web UI at http://localhost:3000/ shows a blank page in version 0.9.0.

Steps to reproduce

docker run -d -p 3000:3000 public.ecr.aws/primaassicurazioni/localauth0:0.9.0
# Open http://localhost:3000/ → blank page

Root cause

The /web/dist/ directory inside the container is missing the compiled WASM and JS bundle:

/web/dist/
├── assets/
├── index.html        ← Trunk template (no <script> tag injected)
├── localauth0-*.png
├── style-*.css
└── sw.js
# ❌ localauth0_web-*.js        (missing)
# ❌ localauth0_web-*_bg.wasm   (missing)

The index.html served is the raw Trunk template without the WASM initialization <script> tag, so the browser renders an empty page.

Looking at the CD workflow, trunk build --release web/index.html outputs to ./dist/ (per web/Trunk.toml: dist = "../dist/"), but the artifact upload path is ./web/dist — which is a different (empty) directory. The container therefore ships without the WASM bundle.

Workaround

Use version 0.8.3, which works correctly:

docker run -d -p 3000:3000 public.ecr.aws/primaassicurazioni/localauth0:0.8.3

Environment

  • Docker image: public.ecr.aws/primaassicurazioni/localauth0:0.9.0
  • Tested on: macOS (Darwin), Docker Desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions