Skip to content

Commit

Permalink
SSR removal until angular/angular#55341 is solved
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelMarks committed Apr 15, 2024
1 parent 3a58ebd commit 7de6ac4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 85 deletions.
7 changes: 1 addition & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@
"styles": [
"src/styles.scss"
],
"scripts": [],
"server": "src/main.server.ts",
"prerender": true,
"ssr": {
"entry": "server.ts"
}
"scripts": []
},
"configurations": {
"production": {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"start": "ng serve --proxy-config proxy.conf.json",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"serve:ssr:ng-material-scaffold": "node dist/ng-material-scaffold/server/server.mjs"
"test": "ng test"
},
"private": true,
"dependencies": {
Expand Down
59 changes: 0 additions & 59 deletions server.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
import { BrowserModule, provideClientHydration } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
import { provideAnimationsAsync } from "@angular/platform-browser/animations/async";

import { LayoutModule } from '@angular/cdk/layout';

Expand All @@ -20,7 +21,6 @@ import { AuthGuard } from './auth/auth.guard';
import { AuthInterceptor } from './auth/auth.interceptors';
import { AppRoutingModule } from './app.routes.module';
import { AppComponent } from './app.component';
import { provideAnimationsAsync } from "@angular/platform-browser/animations/async";

@NgModule({
declarations: [
Expand Down
8 changes: 0 additions & 8 deletions src/main.server.ts

This file was deleted.

6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
import { platformBrowser } from '@angular/platform-browser';

import { AppModule } from "./app/app.module";

platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
platformBrowser().bootstrapModule(AppModule)
.catch((err) => console.error(err));
8 changes: 2 additions & 6 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": [
"node"
]
"types": []
},
"files": [
"src/main.ts",
"src/main.server.ts",
"server.ts"
"src/main.ts"
],
"include": [
"src/**/*.d.ts"
Expand Down

0 comments on commit 7de6ac4

Please sign in to comment.