We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ssr-middleware
example
const conf = require('./config/config.ssr') const ssr = require('egg-react-ssr').koa(conf); const Koa = require('koa'); const app = new Koa(); // mount routes from config app.use(ssr) // ctx.ssrRender() app.use(async ctx => { ctx.ssrRender(...); }); app.listen(3000);
The text was updated successfully, but these errors were encountered:
上面的方案,解决了product问题
单还存在一个dev时候的问题
这个有更好的解法么?
Sorry, something went wrong.
app.use(ssr.dev())
这个方案做得很好很认真,期待支持 koa ~ 💯
zhaoxingyue
jerryYuX
No branches or pull requests
ssr-middleware
example
The text was updated successfully, but these errors were encountered: