Skip to content

Conversation

@Obad94
Copy link
Contributor

@Obad94 Obad94 commented Oct 17, 2025

Summary

  • Keep non-hashed bundles in assets/ so static/ChatGPT can fetch /pizzaz.js|.css, /solar-system.js|.css.
  • Copy to hashed variants (*-<hash>.*) instead of renaming, so both exist.
  • Update MCP server templates so widget URIs exactly match emitted filenames (e.g., ui://widget/pizzaz.html).

Changes

  • Post-build: create hashed copies, retain canonicals.

  • Generate two HTMLs per entry:

    • name.html/${name}.js|.css
    • name-<hash>.html/${name}-<hash>.js|.css
  • Ensure root IDs ${name}-root match app mounts.

Testing

  • pnpm run build && pnpm run serve
  • 200 OK for: /pizzaz.js|.css, /pizzaz-<hash>.js|.css, /solar-system.js|.css, /solar-system-<hash>.*
  • Start Python: uvicorn solar-system_server_python.main:app --port 8000
  • In ChatGPT, clear connector cache; widgets render via updated ui://widget/...html.

Issues

@Obad94 Obad94 changed the title Keep canonical bundles & align widget URIs Fix: Keep canonical bundles & align widget URIs Oct 17, 2025
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.

HTML not loading anymore, had it working yesterday (Oct 15th).

1 participant