Skip to content

fix(web): ship public/ assets in the published ao-web package#2159

Open
GouravSingal-code wants to merge 1 commit into
AgentWrapper:mainfrom
GouravSingal-code:fix/2123-ship-web-public-assets
Open

fix(web): ship public/ assets in the published ao-web package#2159
GouravSingal-code wants to merge 1 commit into
AgentWrapper:mainfrom
GouravSingal-code:fix/2123-ship-web-public-assets

Conversation

@GouravSingal-code

Copy link
Copy Markdown

Closes #2123

Problem

packages/web/public/ is committed in source, but public/ is missing from the files allowlist in packages/web/package.json. As a result, npm strips public/ from the published @aoagents/ao-web tarball, so public/mascot.png (and other public assets) never ship. At runtime the dashboard logs:

⨯ The requested resource isn't a valid image for /mascot.png received null

and the AppMark brand mark renders as a broken image.

Fix

Add "public" to the files array so the committed static assets are included in the published package.

Verification

npm pack --dry-run in packages/web before the change does not list any public/ files; after the change it includes them:

public/mascot.png
public/offline.html
public/sw.js

No code/runtime changes — packaging metadata only.

`packages/web/public/` is committed but missing from the package.json
`files` allowlist, so assets such as `public/mascot.png` are stripped
from the published `@aoagents/ao-web` tarball. The dashboard then logs
`The requested resource isn't a valid image for /mascot.png` and the
AppMark brand mark renders as a broken image.

Add `"public"` to the `files` array so the static assets (mascot.png,
offline.html, sw.js) are included in the published package.

Closes AgentWrapper#2123

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@GouravSingal-code GouravSingal-code force-pushed the fix/2123-ship-web-public-assets branch from d03b56a to 575925f Compare June 20, 2026 08:12
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.

Dashboard 404s on /mascot.png — public/ omitted from @aoagents/ao-web npm "files" allowlist

1 participant