saberland/saber


The issue has been solved
Allow dev mode to use server rendering #301
egoist posted onGitHub
<!-- Please don't delete this template or we'll close your issue -->
<!-- Before creating an issue please make sure you are using the latest version of Saber. -->
Feature request
<!-- Please ask questions via following several ways. -->
<!-- https://chat.saber.land/ -->
<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->
What problem does this feature solve?
Currently, saber
runs your app in SPA mode, i.e. no server rendering, but the app produced by saber build
will run in SSR mode (initial HTML is generated at build time).
The problem is sometimes some errors only occur in your production build, so it's hard to find or debug them during development.
What does the proposed API look like?
Add --ssr
flag to saber
command which allows the app to run in SSR mode.