While the main app runs smoothly, attempting to serve the bundled SSR results in perplexing errors that I'm struggling to comprehend. All setup details are provided below for reference.
The process of creating a server-side app seems riddled with small issues at every turn. Hopefully, with time, things will become more streamlined.
I must admit, there are certain aspects of this setup that I find challenging as I am still getting accustomed to them. Any suggestions for enhancements would be greatly valued. Thank you.
Functions: Package JSON
{
"name": "functions",
"description": "Cloud Functions for Firebase",
...
}
<p><strong>The Server Functions</strong></p>
<pre><code>import 'zone.js/dist/zone-node';
...
export let ssrapp = functions.https.onRequest(app);
Server TS Config
{
"compileOnSave": false,
...
}
<p><strong>The Origin App:</strong></p>
<p><strong>Package JSON</strong></p>
<pre><code>{
"name": "my app",
"version": "0.0.0",
...
}
<p><strong>TSConfig</strong></p>
<pre><code>{
"compileOnSave": false,
...
}
<p><strong>TSConfig.server.json</strong></p>
<pre><code>{
"extends": "../tsconfig.json",
...
}
<p><strong>App.server.module.ts</strong></p>
<pre><code>import { NgModule } from '@angular/core';
...
<p><strong>App.module.ts</strong></p>
<pre><code>import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
...
<p><strong>Main.ts</strong></p>
<pre><code>import { enableProdMode } from '@angular/core';
...
<p><strong>Main.server.ts</strong></p>
<pre><code>export { AppServerModule } from './app/app.server.module';