zhangyuang / ssr

A most advanced ssr framework support React17/React18/Vue2/Vue3 on Earth that implemented serverless-side render specification.
http://doc.ssr-fc.com/
MIT License
2.61k stars 284 forks source link

How to set up a static folder to store files #84

Closed wuyiifan closed 3 years ago

zhangyuang commented 3 years ago

看文档啊。。写得很清楚了。默认示例就包含 build 静态文件夹

wuyiifan commented 3 years ago

How to define my own routing page that is not matched?

zhangyuang commented 3 years ago

Please read document carefully http://doc.ssr-fc.com/docs/features$faq#404%20500%20%E5%BC%82%E5%B8%B8%E5%A4%84%E7%90%86

wuyiifan commented 3 years ago

Thanks

wuyiifan commented 3 years ago

This redirection changes the URL address and visits a defined 404 page. Is there any way to render the page without changing the address, similar to the effect of rewrite.

zhangyuang commented 3 years ago

Again, read the documentation carefully

wuyiifan commented 3 years ago

http://127.0.0.1:3000/user/12123 the url will be redirect http://127.0.0.1:3000/404. I want to directly display the page not found when I visit http://127.0.0.1:3000/user/12123 instead of visiting the route /404. I feel that this framework does not seem to support.

zhangyuang commented 3 years ago

你要是想保持path不变,你就在服务端render一个模版提示错误页面。不可能给你去渲染一个不存在的组件,就算指定服务端渲染哪个组件到了客户端阶段也会not match。。。。麻烦简单把文档看一遍了解下基本流程再来提问