fix(rcred): correct script path — /modules/ not /dist/modules/

serveStatic resolves relative to dist/, so /dist/modules/ doubled the
prefix and 404'd. All other modules use /modules/rcred/file.js.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-15 16:57:59 -04:00
parent 123d61109e
commit b2c2faee76
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ routes.get('/', (c) => {
moduleId: 'rcred',
modules: getModuleInfoList(),
body: `<folk-cred-dashboard space="${space || 'demo'}"></folk-cred-dashboard>`,
scripts: '<script type="module" src="/dist/modules/rcred/folk-cred-dashboard.js"></script>',
scripts: '<script type="module" src="/modules/rcred/folk-cred-dashboard.js"></script>',
}),
);
});