Category "server-side-rendering"

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

How to receive className with ServerSideRender of Gutenberg?

I'm trying to render a block from PHP with ServerSideRender as follows: js file: /** * WordPress dependencies */ const { __ } = wp.i18n; const { registerBlo

How to use cookie inside `getServerSideProps` method in Next.js?

I have to send current language on endpoint. But getting language from Cookie returns undefined inside getServerSideProps. export async function getServerSidePr

How can I get the all html code into view page source as I am developing a project in NEXT.js

I am developing a project where i am using NEXT.js but there i am getting a issue like i am not getting the all html value in view page source. I think my probl

Next Auth "Credentials" redirection when throwing error on custom login page

I have a custom login page, which in turn calls the signIn() function when submitting the form. I am only using the "Credentials" provider. Server-side, I am ju

How to detect the device on React SSR App with Next.js?

on a web application I want to display two different Menu, one for the Mobile, one for the Desktop browser. I use Next.js application with server-side rendering

How to use Tailwind Elements in Sveltekit

I'm trying to use a simple Tailwind date picker component in a svelte kit app, however the calendar popup is not appearing. I assume it has something to do with

how to redirect from a utility function in remix run

I am using Remix-run and i want to redirect to my login page from a auth utility function. but it doesnt work. here is a similar function to my authentication u

Is there any method to overcome the error of hydration UI in next.js while using use-sse?

I am using use-sse (server side rendering hook) in my next.js application but i am getting an error of "There was an error while hydrating. Because the error ha

Material styling not loading in production build

I'm currently working on a project with Nextjs and Material UI. Everything works great in development mode. When I build the project, the first page loads just

google chrome extensions: Show ssr or csr

hello I am looking for a tool where I can see how the website rendering is done. Whether the website Server Side Rendering or Client Side Rendering

How to reduce bundle size of first load page in Next.js? [duplicate]

I have a very big bundle size of one of my pages. How can I improve the first loading of the page in Next.js? Pls take a look on screenshot

How to send HTTP Headers during/after HTTP Body stream? Is there spec work on this?

Today, HTTP headers all need to be sent before a single bit of HTTP body is sent to the browser. This is especially problematic with new technologies such as Re

How do I implement custom error pages in NuxtJS 3?

I'm trying to get my NuxtJS 3 app to show custom error pages. The app is universal with SSR. The NuxtJS 2 docs say to add a layouts/error.vue file and it should

403 Access Error returned from Browser possibly caused by AWS

I have my serverless web app hosted on AWS amplify. I am getting Access Denied error XML if I try refreshing the page. When I look into the Console, it shows no

NextJS deployed to AWS Amplify with ISR - build takes too long

By default, while deploying the NextJS app to AWS Amplify, it uses 7GB RAM. When I build my app on EC2 instance with 2GB RAM (1vCPU), building app takes less th

mocking server for SSR react app e2e tests with cypress.io

I'm building a single page web application (SPA) with server side rendering (SSR). We have a node backend API which is called both from the node server during