Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wuyiifan opened this issue Jul 26, 2021 · 8 comments
Closed

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

wuyiifan opened this issue Jul 26, 2021 · 8 comments

Comments

@wuyiifan
Copy link

No description provided.

@zhangyuang
Copy link
Owner

zhangyuang commented Jul 26, 2021

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

@wuyiifan
Copy link
Author

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

@zhangyuang
Copy link
Owner

@wuyiifan
Copy link
Author

Thanks

@wuyiifan
Copy link
Author

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
Copy link
Owner

Again, read the documentation carefully

@wuyiifan
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants