feat(iframe): add iframe bridge for ragflow integration

- Implement Penpal-based iframe communication bridge between host and child apps
- Add route handling for ragflow integration with '/route-ragflow' prefix
- Update navigation hooks to support embedded mode via iframe bridge
- Configure build and dependencies for new iframe-bridge package
- Adjust nginx config for proper SPA routing in subpath deployments
This commit is contained in:
2025-11-10 16:11:21 +08:00
parent 81fa34669a
commit a3ff72e575
17 changed files with 377 additions and 37137 deletions

View File

@@ -50,7 +50,9 @@ server {
# ragflow_webUmi部署在子路径支持 SPA 路由
location ${RAGFLOW_BASE} {
alias /usr/share/nginx/html/ragflow/;
try_files \$uri \$uri/ /index.html;
# 注意使用别名目录时SPA 回退必须指向子路径下的 index.html
# 否则会错误地回退到根应用的 index.html导致页面刷新后空白或错路由
try_files \$uri \$uri/ ${RAGFLOW_BASE}index.html;
}
# 静态资源缓存