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 17
17
"clean:install" : " rimraf node_modules & yarn" ,
18
18
"start" : " ng serve --hmr" ,
19
19
"build" : " ng build --configuration production" ,
20
- "build:ssr" : " npm run build --project=ssr" ,
21
20
"lint" : " ng lint" ,
22
21
"e2e" : " ng e2e" ,
23
22
"test" : " jest" ,
37
36
"@angular/localize" : " ^13.0.0" ,
38
37
"@angular/platform-browser" : " 13.0.0" ,
39
38
"@angular/platform-browser-dynamic" : " 13.0.0" ,
40
- "@angular/platform-server" : " 13.0.0" ,
41
39
"@angular/router" : " 13.0.0" ,
42
40
"@microsoft/signalr" : " 5.0.11" ,
43
41
"@microsoft/signalr-protocol-msgpack" : " 5.0.11" ,
44
42
"@ng-bootstrap/ng-bootstrap" : " ^10.0.0" ,
45
43
"ag-grid-angular" : " ^26.1.0" ,
46
44
"ag-grid-community" : " ^26.1.0" ,
47
45
"bootstrap" : " 4.6.0" ,
48
- "core-js" : " ^3.19.1" ,
49
46
"date-fns" : " 2.25.0" ,
50
47
"lodash" : " 4.17.21" ,
51
48
"oidc-client" : " 1.11.5" ,
Original file line number Diff line number Diff line change @@ -100,25 +100,6 @@ public void Configure(IApplicationBuilder app)
100
100
{
101
101
spa . Options . SourcePath = "ClientApp" ;
102
102
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
-
122
103
if ( HostingEnvironment . IsDevelopment ( ) )
123
104
{
124
105
//spa.UseAngularCliServer(npmScript: "start");
Original file line number Diff line number Diff line change 7
7
<SpaRoot >ClientApp\</SpaRoot >
8
8
<DefaultItemExcludes >$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes >
9
9
<!-- Set this to true if you enable server-side prerendering -->
10
- <BuildServerSideRenderer >false</BuildServerSideRenderer >
11
10
<DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
12
11
<DockerfileContext >.</DockerfileContext >
13
12
<DockerComposeProjectPath >docker-compose.dcproj</DockerComposeProjectPath >
78
77
<Target Name =" PublishRunWebpack" AfterTargets =" ComputeFilesToPublish" >
79
78
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
80
79
<Exec WorkingDirectory =" $(SpaRoot)" Command =" npm run build" />
81
- <Exec WorkingDirectory =" $(SpaRoot)" Command =" npm run build:ssr" Condition =" '$(BuildServerSideRenderer)' == 'true' " />
82
80
83
81
<!-- Include the newly-built files in the publish output -->
84
82
<ItemGroup >
You can’t perform that action at this time.
0 commit comments