Questions tagged [pre-rendering]
37 questions
11
votes
1 answer
why does the useEffect hook even with no dependecies still "run" on the client side even though the page has been pre-rendered by next-js
I thought that the pre-rendering process would mean that hooks like useEffect will already be executed on the server.
I read something about hydration, don't know if it explains this occurrence but couldn't understand it clearly from the blogs that…

one_timer
- 113
- 1
- 6
4
votes
1 answer
Angular Twitter Card and Facebook Post with dynamic routes and resources
I'm working on an Angular 14 app and I trying to make twitter cards with dynamic routes. The case is the following:
I have an online store that shows different products, obviously is the same route just changing the product info by a param in the…

Sergio Mendez
- 1,311
- 8
- 33
- 56
3
votes
1 answer
does nextjs prerender all pages or only the first page?
I'm learning nextjs and read in some places that nextjs only prerenders the first page and in some other places they say nextjs prerenders all pages by default so I cant understand which one is true

Fateme Hemmati
- 45
- 5
2
votes
1 answer
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/express-engine package. I can't seem to get static…

Alex Bush
- 31
- 4
2
votes
0 answers
How and where can I see meta tag working?
How can I check that is actually working? Where in Chrome's DevTools can I see that an href URL is loading in the background or something? I see no requests in Network tab related to href loading and prerender job.

artuska
- 864
- 2
- 12
- 23
1
vote
0 answers
How do I pre-render my react app created by Vite?
I am trying to prerender my vite react app with the react-snap package.
I have tried the procedure of prerendering with the following code. But it doesn't get build in production (I configured GitHub action for deployment).
const Main = (
…

Md. Zayed Hassan
- 112
- 7
1
vote
0 answers
Angular universal: how to prerender a routesFile in a multi configuration project
Angular universal: how to prerender a routesFile in a multi configuration project
I have an angular project that has multiple configurations
I installed the express-engine using the command
`ng add @nguniversal/express-engine`
I have also updated…

Omar Haddad
- 11
- 1
1
vote
1 answer
Page specific tailwind classes with SSG
Currently I'm developing a website using the following stack:
vue.js
@vue/server-renderer
vite
tailwind CSS
SSG was chosen as the rendering mode.
Tailwind, as described in the documentation, allows you to specify directories and file extensions…

Andriy Murovanyi
- 11
- 2
1
vote
0 answers
What would be different behaviour and result on different values of page options and their combination in Sveltekit?
Sveltekit provide 3 page options givent https://kit.svelte.dev/docs/page-options
prerender
csr
ssr
These are the possible cases
Taking one at a time
e.g. where we are setting
export const prerender = true;
or
export const prerender =…

Alok
- 7,734
- 8
- 55
- 100
1
vote
1 answer
`speculationrules` markup not working for prerendering pages in Chrome
Following the instructions in the Chrome blog Prerender pages in Chrome for instant page navigations, I am trying to enable pre-rendering on a website. I have added this snippet just before