mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-25 20:55:52 +03:00
[GH-ISSUE #709] [Feature] 新增前端静态资源 vite config.js base的配置 #479
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#479
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hululuuuuu on GitHub (May 20, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/709
功能描述 / Description
举例: 我希望通过 www.aaa.com/certimate/ 访问到这个项目 但是因为前端打包 vite.config.ts 配置不支持 base 导致默认静态资源 路径为 / 生成的静态文件路径为 /assets/xxxxx.js 包括不仅限于 js ,图片,css 等静态资源。
如图
`
对返回的 html 进行替换,但是对js 动态生成的资源链接不生效。
请求动机 / Motivation
通过 nginx 反向代理配置 /xxxx/ 可以访问该项目
其他 / Miscellaneous
No response
贡献 / Contribution
@hululuuuuu commented on GitHub (May 20, 2025):
@fudiwei commented on GitHub (May 20, 2025):
duplicate #359
@NorthNanmu commented on GitHub (Aug 9, 2025):
@hululuuuuu 下列nginx反代conf测试可用,摸索+Ai跑出来的