GithubHelp home page GithubHelp logo

Comments (8)

zhangyuang avatar zhangyuang commented on May 21, 2024

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

from ssr.

wuyiifan avatar wuyiifan commented on May 21, 2024

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

from ssr.

zhangyuang avatar zhangyuang commented on May 21, 2024

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

from ssr.

wuyiifan avatar wuyiifan commented on May 21, 2024

Thanks

from ssr.

wuyiifan avatar wuyiifan commented on May 21, 2024

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.

from ssr.

zhangyuang avatar zhangyuang commented on May 21, 2024

Again, read the documentation carefully

from ssr.

wuyiifan avatar wuyiifan commented on May 21, 2024

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.

from ssr.

zhangyuang avatar zhangyuang commented on May 21, 2024

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

from ssr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.