Skip to content

fix: force-track H5P DragText and Dialogcards dist/ files#71

Merged
fanxiaotuGod merged 1 commit intomainfrom
feat/h5p-review
Mar 3, 2026
Merged

fix: force-track H5P DragText and Dialogcards dist/ files#71
fanxiaotuGod merged 1 commit intomainfrom
feat/h5p-review

Conversation

@fanxiaotuGod
Copy link
Collaborator

Root cause: .gitignore contains dist/ which excluded the webpack build output for H5P.DragText-1.10 and H5P.Dialogcards-1.9. These two libraries store their compiled JS/CSS in dist/ unlike other H5P libraries that use js/ or scripts/. The files existed locally but were never deployed to staging, causing "Library not loaded" errors.

Also removes diagnostic logging added during troubleshooting and serves library files through /api/create/h5p-preview/libs/* route instead of a separate /h5p-libs static route (no nginx config needed).

Root cause: .gitignore contains `dist/` which excluded the webpack
build output for H5P.DragText-1.10 and H5P.Dialogcards-1.9. These
two libraries store their compiled JS/CSS in dist/ unlike other H5P
libraries that use js/ or scripts/. The files existed locally but
were never deployed to staging, causing "Library not loaded" errors.

Also removes diagnostic logging added during troubleshooting and
serves library files through /api/create/h5p-preview/libs/* route
instead of a separate /h5p-libs static route (no nginx config needed).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fanxiaotuGod fanxiaotuGod merged commit 01831ec into main Mar 3, 2026
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.

2 participants