Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. app.UseSpa(spa => {
  2. spa.Options.SourcePath = "ClientApp";
  3.  
  4. spa.UseSpaPrerendering(options => {
  5. options.BootModulePath = $"{spa.Options.SourcePath}/dist/server/main.js";
  6. options.BootModuleBuilder = env.IsDevelopment()
  7. ? new AngularCliBuilder(npmScript: "build:ssr")
  8. : null;
  9. options.ExcludeUrls = new[] { "/sockjs-node" };
  10. });
  11.  
  12. if (env.IsDevelopment()) {
  13. spa.UseAngularCliServer(npmScript: "start");
  14. }
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement