Skip to content

Commit

Permalink
fix: add @angular/platform-server/init to main.server.ts
Browse files Browse the repository at this point in the history
this will invoke Angular's Domino setup.
Which allows access to browser elements like HTMLElement
in a SSR environment.

Closes #19

closes #24
  • Loading branch information
goetzrobin committed Sep 8, 2023
1 parent 72c82e5 commit d01ab4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/app/src/main.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import 'zone.js/node';
import '@angular/platform-server/init';

import { enableProdMode } from '@angular/core';
import { renderApplication } from '@angular/platform-server';
import { AppComponent } from './app/app.component';
Expand Down

0 comments on commit d01ab4d

Please sign in to comment.