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

umi supports prerender, isomorphic, server side render (SSR) ? #377

Closed
aletus opened this issue Apr 24, 2018 · 5 comments · Fixed by #4499
Closed

umi supports prerender, isomorphic, server side render (SSR) ? #377

aletus opened this issue Apr 24, 2018 · 5 comments · Fixed by #4499

Comments

@aletus
Copy link

aletus commented Apr 24, 2018

Since umi is described as next.js like, does umi support prerendering of HTML pages when build?

I tried the exportStatic option but it doesn't seem to prerender the page.

@sorrycc
Copy link
Member

sorrycc commented Apr 25, 2018

  • prerender is planned to support
  • ssr does not support, we do not need it

@superlbr
Copy link
Contributor

superlbr commented Apr 25, 2018

on my view, ssr is powered by a backend server, such as eggjs
However, umi is just going to be a package tool to build dist. Here's an example of egg with umi

Found some similar project:
ssr plugin for egg.js
avet --build top of Next.js and Egg.js
egg-react-webpack-boilerplate
react-koa2-ssr

@aletus
Copy link
Author

aletus commented Apr 25, 2018

@sorrycc I agree with umi build and static site hosting, SSR is not needed.

However prerendering the initial HTMLs are really good to speed up the load time and also for search engine optimization SEO. Looking forward to get it added to umi.

I am also looking for a way to generate google Accelerated Mobile Page AMP when doing umi build.

Right now I have to hand coded the AMP HTML separately and it is duplicated work.

@antenando
Copy link

I don't want to reopen this issue but I think this is the best place to ask this.

Is there a proper way I can make certain(s) page(s) SSR (maybe like config.openPages ?) server side renderable ?

In this case I'm looking for a way a page can be indexed by the web crawlers, i.e. Google.

@ycjcl868
Copy link
Contributor

@ycjcl868 ycjcl868 mentioned this issue May 15, 2020
4 tasks
sorrycc pushed a commit that referenced this issue Jun 23, 2022
* fix(build): identify `umi` output assets reg match

* chore: update umi css assets reg
xierenyuan pushed a commit to xierenyuan/umi that referenced this issue Jun 23, 2022
* fix(build): identify `umi` output assets reg match

* chore: update umi css assets reg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants