File tree Expand file tree Collapse file tree 4 files changed +0
-51
lines changed
Expand file tree Collapse file tree 4 files changed +0
-51
lines changed Original file line number Diff line number Diff line change 1717 "clean:install" : " rimraf node_modules & yarn" ,
1818 "start" : " ng serve --hmr" ,
1919 "build" : " ng build --configuration production" ,
20- "build:ssr" : " npm run build --project=ssr" ,
2120 "lint" : " ng lint" ,
2221 "e2e" : " ng e2e" ,
2322 "test" : " jest" ,
3736 "@angular/localize" : " ^13.0.0" ,
3837 "@angular/platform-browser" : " 13.0.0" ,
3938 "@angular/platform-browser-dynamic" : " 13.0.0" ,
40- "@angular/platform-server" : " 13.0.0" ,
4139 "@angular/router" : " 13.0.0" ,
4240 "@microsoft/signalr" : " 5.0.11" ,
4341 "@microsoft/signalr-protocol-msgpack" : " 5.0.11" ,
4442 "@ng-bootstrap/ng-bootstrap" : " ^10.0.0" ,
4543 "ag-grid-angular" : " ^26.1.0" ,
4644 "ag-grid-community" : " ^26.1.0" ,
4745 "bootstrap" : " 4.6.0" ,
48- "core-js" : " ^3.19.1" ,
4946 "date-fns" : " 2.25.0" ,
5047 "lodash" : " 4.17.21" ,
5148 "oidc-client" : " 1.11.5" ,
Original file line number Diff line number Diff line change @@ -100,25 +100,6 @@ public void Configure(IApplicationBuilder app)
100100 {
101101 spa . Options . SourcePath = "ClientApp" ;
102102
103- /*
104- // If you want to enable server-side rendering (SSR),
105- // [1] In AspNetCoreSpa.csproj, change the <BuildServerSideRenderer> property
106- // value to 'true', so that the SSR bundle is built during publish
107- // [2] Uncomment this code block
108- */
109-
110- // spa.UseSpaPrerendering(options =>
111- // {
112- // options.BootModulePath = $"{spa.Options.SourcePath}/dist-server/main.bundle.js";
113- // options.BootModuleBuilder = env.IsDevelopment() ? new AngularCliBuilder(npmScript: "build:ssr") : null;
114- // options.ExcludeUrls = new[] { "/sockjs-node" };
115- // options.SupplyData = (requestContext, obj) =>
116- // {
117- // // var result = appService.GetApplicationData(requestContext).GetAwaiter().GetResult();
118- // obj.Add("Cookies", requestContext.Request.Cookies);
119- // };
120- // });
121-
122103 if ( HostingEnvironment . IsDevelopment ( ) )
123104 {
124105 //spa.UseAngularCliServer(npmScript: "start");
Original file line number Diff line number Diff line change 77 <SpaRoot >ClientApp\</SpaRoot >
88 <DefaultItemExcludes >$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes >
99 <!-- Set this to true if you enable server-side prerendering -->
10- <BuildServerSideRenderer >false</BuildServerSideRenderer >
1110 <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
1211 <DockerfileContext >.</DockerfileContext >
1312 <DockerComposeProjectPath >docker-compose.dcproj</DockerComposeProjectPath >
7877 <Target Name =" PublishRunWebpack" AfterTargets =" ComputeFilesToPublish" >
7978 <!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
8079 <Exec WorkingDirectory =" $(SpaRoot)" Command =" npm run build" />
81- <Exec WorkingDirectory =" $(SpaRoot)" Command =" npm run build:ssr" Condition =" '$(BuildServerSideRenderer)' == 'true' " />
8280
8381 <!-- Include the newly-built files in the publish output -->
8482 <ItemGroup >
You can’t perform that action at this time.
0 commit comments