feat: Initialize Angular SSR application with core pages, components, and server setup.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// IMPORTANT: DOM polyfill must be imported FIRST, before any browser-dependent libraries
|
||||
import './src/ssr-dom-polyfill';
|
||||
|
||||
import { APP_BASE_HREF } from '@angular/common';
|
||||
import { CommonEngine } from '@angular/ssr';
|
||||
import express from 'express';
|
||||
@@ -44,7 +47,7 @@ export function app(): express.Express {
|
||||
}
|
||||
|
||||
function run(): void {
|
||||
const port = process.env['PORT'] || 4000;
|
||||
const port = process.env['PORT'] || 4200;
|
||||
|
||||
// Start up the Node server
|
||||
const server = app();
|
||||
|
||||
Reference in New Issue
Block a user