alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
https://ice.work
MIT License
17.83k stars 2.09k forks source link

[SSG] 打包后通过 example.com/test 可以访问 example.com/test/index.html 页面白屏 #6787

Closed maskTAQ closed 7 months ago

maskTAQ commented 7 months ago

Describe the bug

example.com/test/index.html 浏览器显示空白 但是访问example.com/test 是有内容的

Expected behavior

期望 example.com/test/index.html 的页面结果跟 访问example.com/test 一致

Actual behavior

No response

Version of ice.js

2.6.6

Content of build.json or ice.config.mts

No response

Additional context

No response

ClarkXia commented 7 months ago

关注下页面路由匹配规则,如果路由为 test,需要 nginx 等服务配置将 test 路径内容输出 test.html 即可,否则你路由配置就应该设置成 test.html

ClarkXia commented 7 months ago

先参考上述方式,如果还有其他问题可以再重开 issue