Category "server-side-rendering"

Deploy Angular Universal folder Server and Browser

I've built a project with Angular Universal with the command: npm run build:ssr Everything worked perfectly as I was able to visualize the result by using npm r

React + NextJS - Protected routes

Objective : I want to redirect a logged in user to the home page if he/she tries to manually go to the /auth/signin. Signin page/component : const Signin = ({

Get client IP in getServerSideProps method in NextJs [duplicate]

I am trying to find the IP of the client in getServerSideProps in NextJs. I simply use basic IP found methods but when I call that method in g

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 i

ERROR TypeError: spanEl.getBoundingClientRect is not a function

ERROR TypeError: spanEl.getBoundingClientRect is not a function at _guessBsVersion (C:\Users\sagar h\Desktop\MYRIDZ\falcon-mobikes-website\dist\server\main.

.next folder size increases in Next react App

We have developed the nextjs react application, which is ready in production now. It leads to some storage issues. we inspect a lot and finally found .next fold

Error when trying to run dev server | React, SSR

I got this error when I'm trying to run server: E:...\node_modules\ts-loader\dist\watch-run.js:29 for (const [filePath, date] of times) { ^ TypeError: times is

NextJS - Too Many Open Files Error in Production

I'm facing an issue in my Production environment during peak traffic hours. Any help on identifying the source of this error would be really appreciated. Error

NuxtJS Page is created twice

I am currently facing an Issue in NuxtJS where a method is called twice and a request is therefore sent twice. This happens in a page and the method which is ca

This error happened while generating the page. Any console logs will be displayed in the terminal window

1st time its show this error I want to make an API call to my API route using Axios. When I run my code the first time its shows that error but when I refresh

setting "type" to "module" in package.json then not able to read es modules

CONTEXT: I'm trying to start with SSR using react, and I've ran into this problem before the updates, and I'm pretty sure I'm missing something obvious but I'm

Does getStaticProps fetch data every time I get back same page?

I am using routes to get page ex. page/[id].js and show data for that id only. So will it refetch data every time I visit this page? ex. going to the next page

NuxtJS change query params and reload page

I have a route in my NuxtJS application that accept query parameters. I'm trying to implement a logic that allow the user to change the query parameters and rel

Get the client IP on NextJS and use SSR

I'm making a weather app, and I get the client IP with IPIFY, but this loses SSR, or I use SSR and I get the server IP. Someone told me that I could use the hea

Server Side Rendering for improving SEO of landing page in already existing React + jQuery Website

I have an already existing website that has a pretty huge codebase. It was initially built in jQuery and is currently being migrated to ReactJS so both are used

Server Side Rendering for improving SEO of landing page in already existing React + jQuery Website

I have an already existing website that has a pretty huge codebase. It was initially built in jQuery and is currently being migrated to ReactJS so both are used

How to get origin or domain name in Next.js [duplicate]

I can get the relative pathname using useRouter().asPath which gives something like /my-awesome-post but how to get the origin? Similar to wha

How to implement FreshworksWidget into next.js project?

In Freshdesk docs they provide this script: <script> window.fwSettings={ 'widget_id':12000000025, 'locale': 'en' }; !function(){if("func

Angular grid with server side filtering, sorting and pagination?

I want to implement Angular grid with server side pagination, filtering and sorting> Ag grid provide these feature in enterprise edition only. Is there any o

How to get Auth0 User object in getServerSideProps?

I am trying to use Auth0 with NextJS for user authentication. After login I want to access the user object in getServerSideProps. I followed this link below, St