fix(deploy): 模块 wrapper 资产分支——相对引用剥前缀 + 空路径落 Hono - #58
Merged
Conversation
真机(已激活实例)验证两处:
- 页面 import './sdk/module-sdk.js' 请求 /m/<id>/sdk/...,旧 wrapper
找 assets/<id>/sdk/...(多了 assets/ 段)必 404 → 对齐部署期资产
布局 sdk/module-sdk.js(探针:ASSETS.fetch('/sdk/x') 200)
- /m/<id>/ 与 /m/<id>(模块页本体)不能落资产分支(模块无静态
index.html,/ 由 Hono 渲染)→ 仅「前缀+更多路径」走资产
真机:/m/hello/ 200(Hono HTML)、sdk/module-sdk.js 200(JS)、
api/health 200;/m/hello 404 保持。Ref #57
Signed-off-by: huangyinghui <18666119673@163.com>
This was referenced Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
真机发现(已激活实例,模块子域直测)
根因(wrapper 资产分支两处)
验证
Ref #57