diff --git a/src/app/app.config.server.ts b/src/app/app.config.server.ts deleted file mode 100644 index 41031f1..0000000 --- a/src/app/app.config.server.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { mergeApplicationConfig, ApplicationConfig } from '@angular/core'; -import { provideServerRendering, withRoutes } from '@angular/ssr'; -import { appConfig } from './app.config'; -import { serverRoutes } from './app.routes.server'; - -const serverConfig: ApplicationConfig = { - providers: [ - provideServerRendering(withRoutes(serverRoutes)) - ] -}; - -export const config = mergeApplicationConfig(appConfig, serverConfig); diff --git a/src/app/app.routes.server.ts b/src/app/app.routes.server.ts deleted file mode 100644 index 50188b3..0000000 --- a/src/app/app.routes.server.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { RenderMode, ServerRoute } from '@angular/ssr'; - -export const serverRoutes: ServerRoute[] = [ - { - path: 'admin/login', - renderMode: RenderMode.Prerender - }, - { - path: '**', - renderMode: RenderMode.Client - } -]; diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 09814d3..66d0660 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -16,16 +16,11 @@ const enum AdminRouteTitles { export const routes: Routes = [ { path: '', - redirectTo: 'admin/about', + redirectTo: 'about', pathMatch: 'full' }, { - path: 'admin', - redirectTo: 'admin/about', - pathMatch: 'full' - }, - { - path: 'admin', + path: '', component: AdminLayout, title: 'Admin', children: [ diff --git a/src/main.server.ts b/src/main.server.ts deleted file mode 100644 index 723e001..0000000 --- a/src/main.server.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { BootstrapContext, bootstrapApplication } from '@angular/platform-browser'; -import { App } from './app/app'; -import { config } from './app/app.config.server'; - -const bootstrap = (context: BootstrapContext) => - bootstrapApplication(App, config, context); - -export default bootstrap;