All Questions
51 questions
2
votes
0
answers
327
views
How to apply Server Side Rendering SSR in existing NodeJS and Angular project?
I have one NodeJs app which provide static dist files from one Angular 17 app. Now I need to implement SSR. I try to find way to do, but I can't find anything.
How can I implement this?
I looked for ...
0
votes
1
answer
1k
views
Missing index.html in dist/browser after building Angular universal projects by running "npm run build:ssr"
After installing Angular universal by running:
ng add @nguniversal/express-engine
I went to build the project by:
npm run build:ssr
When I run serve the project with
npm run serve:ssr
Error appears:...
4
votes
1
answer
2k
views
Angular Universal SSR loading static assets in prerender stage
I'm looking for an approach to accessing assets in the /assets/ folder that is used to build the content in a component when prerendering an application. I'm using Angular 14 and the @nguniversal/...
2
votes
1
answer
3k
views
Server side rendering not working with modules lazy loading angular 12 on live server
On the localhost module, lazy loading is working fine, showing meta tags and HTML content in <app-root><app-root/> in the view page source, but it is not showing on the live server. On the ...
2
votes
1
answer
2k
views
Angular 9 SSR 404 Not Found Page with Status code
Am using Angular 9 with SSR, Now am trying to fetch the 404 page. Its successfully working with client side. But Status is always coming as 200 Ok. When am tried with Angular ssr also its showing 200 ...
1
vote
0
answers
615
views
Angular 9 SSR logs - avoid having the whole body of the main.js in our logs
Since we changed our project to Server-Side Rendering we have a huge amount of logs coming from our client. The main problem is that every log entry has the body of the main.js in it. So about 80.000 ...
0
votes
1
answer
249
views
Can navigator give you the language/languages in Angular Universal?
My question stems from the fact that navigator works for the browser but we don't have that on the server but in our codebase at work I have seen code like this:
navigator.language.slice(0, 2);
and of ...
2
votes
2
answers
3k
views
How to access request body in an Angular Server Side Rendering application?
I'm implementing an application to generate pdf using angular server side rendering. In there I want to use request body inside the angular components, this is the code sample I trying
server.ts file
...
1
vote
1
answer
1k
views
Authenticating Angular Universal With JWT
I have an Angular 10 Universal project that uses JWT retrieved from localhost in order to authenticate requests for private routes.
I currently use this project for the authentication process:
https://...
0
votes
2
answers
2k
views
What is the best way to deploy multiple Angular SSR apps to Digital Ocean droplet?
I am trying to deploy an Angular SSR (Server Side Rendering) app that contains multiple projects/websites to a Digital Ocean droplet. My question is, when I deploy should each project/website have its ...
0
votes
0
answers
336
views
Angular 11 on Plesk with server side rendering/angular universal
At the moment I try to get my Plesk server running with angular universal.
I've installed nodeJs and configured this as followed:
Node.js-versie 12.4.0
Document root /httpdocs
Applicatiemodus ...
0
votes
0
answers
94
views
Angular routes for blog based on title
I'm trying to build a blog with Angular + Angular Universal because I want it to be server-side rendered (SEO reasons) and NodeJS. The posts will be fetched from API, the problem now is routing, ...
6
votes
0
answers
341
views
ReferenceError: google is not defined Angular Universal SSR npm run server:ssr
I am aware of the reason why google reference error is coming its because sever.js which is getting executed at the server does not have google defined in its scope. I am looking for a turnaround to ...
1
vote
1
answer
2k
views
Angular Universal Slow TTFB - npm run serve:ssr
UPDATE:
npm run dev:ssr (TypeScript version) runs at normal speed, but the built (JavaSscript version) version does not.
I have an Angular application - https://github.com/dlist-xyz/website
The TTFB ...
1
vote
0
answers
328
views
TypeError: Cannot read property 'indexOf' of undefined Angular SSR
I'm trying to implement SSR in my Angular 10 Application.
While running npm run serve:ssr, I'm getting the below error
TypeError: Cannot read property 'indexOf' of undefined
at Function....