Skip to content

Commit

Permalink
chore: fix build site
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Nov 9, 2023
1 parent adc5a9d commit 3d69832
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions scripts/site/route-paths.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@
/form/rate/zh
/form/schema/en
/form/schema/zh
/form/segmented/en
/form/segmented/zh
/form/select/en
/form/select/zh
/form/slider/en
Expand Down
5 changes: 3 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { LayoutModule } from '@angular/cdk/layout';
import { isPlatformBrowser, registerLocaleData } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import localeZh from '@angular/common/locales/zh';
import { APP_INITIALIZER, ErrorHandler, Inject, Injector, NgModule, PLATFORM_ID } from '@angular/core';
import { APP_INITIALIZER, ErrorHandler, Inject, Injector, NgModule, PLATFORM_ID, APP_ID } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { createCustomElement } from '@angular/elements';
Expand Down Expand Up @@ -61,7 +61,7 @@ function registerElements(injector: Injector, platformId: {}): void {

@NgModule({
imports: [
BrowserModule.withServerTransition({ appId: 'serverApp' }),
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
BidiModule,
Expand All @@ -82,6 +82,7 @@ function registerElements(injector: Injector, platformId: {}): void {
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production })
],
providers: [
{ provide: APP_ID, useValue: 'serverApp' },
// {
// provide: RouteReuseStrategy,
// useClass: ReuseTabStrategy,
Expand Down
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
// eslint-disable-next-line import/no-unassigned-import
import 'zone.js/dist/zone-node';
import 'zone.js/bundles/zone-node.umd';
import { APP_BASE_HREF } from '@angular/common';

import { ngExpressEngine } from '@nguniversal/express-engine';
Expand Down

0 comments on commit 3d69832

Please sign in to comment.