295 questions
0
votes
0
answers
53
views
Why does generateStaticParams() in Next.js App Router make a page static (SSG) instead of server-rendered (SSR)?
I’m using the Next.js App Router and trying to understand how rendering type is decided.
In my page, I have both generateStaticParams() and a server component that fetches data:
export async function ...
0
votes
0
answers
186
views
Next.js deploying to Cloudflare Workers
want to ask question about opennext.
I have deployed my blog without any issue.
And when i readed documentation i found that worker have assets binding, and when you deploy, its populates with static ...
0
votes
1
answer
60
views
Setting theme via config Vs. --theme (New template system)
I have this in hugo.toml
theme="r-hugo-theme"
and this folder structure:
I'm trying to follow the new template system: https://gohugo.io/templates/new-templatesystem-overview/
I get the ...
0
votes
1
answer
133
views
how client:load and client:only="react" differs in SSG and SSR of astro?
I understand the SSG and SSR mode in astro and when to use them. We use SSG where dealing with static pages and SSG offers faster speed due just serving prerendered code. We will use SSR when we are ...
9
votes
1
answer
440
views
Optimizing SSG output of Angular 20 to not include debug nodes
I have an Angular v20 app with SSR enabled just for the prerendering and I'm hosting the site statically on Github Pages. I enabled Server Side Rendering in Angular just for the Static Site Rendering ...
0
votes
1
answer
182
views
How to pre-render specific route on cli?
I have configured in app.routes.server.ts to pre-render a set of articles that are fetched from a CMS. It looks like this:
// app.routes.server.ts
...
{
path: 'article/:articleId',
renderMode:...
0
votes
1
answer
45
views
I am getting below error on running npm run build when it generate static pages
ReferenceError: window is not defined
at 99869 (/Users/admin/Desktop/raff/raff-frontend/.next/server/chunks/7450.js:1:2175763)
at t (/Users/admin/Desktop/raff/raff-frontend/.next/server/webpack-...
0
votes
1
answer
62
views
How to use getStaticProps in app/ Page component
I think that Page.tsx belongs to app/.
In src/app/Page.tsx, the MRE:
export default function Home({ images: { poze } }: {
images: {
poze: string;
}
}) {
return poze;
};
export const ...
0
votes
1
answer
150
views
How to use useState without "use client" in Next.js when I use generateStaticParams
I need this in an SSG to send to photo galleries the image files' dimensions. I expected no error.
Error of "npm run dev":
21:23:44 ~/Desktop/Pro/home-gh-pages main $ npm run dev
> home-...
0
votes
1
answer
102
views
Using Blazor for generating static serverless website (without .NET server and without .NET client)
Short question:
I try to store the HTML output of a Blazor to a file in order to have a static website, but I don't find the file. What am I missing?
Long question
Some time ago I asked a question ...
1
vote
0
answers
38
views
Best way to integrate different Angular applications with SSG and SSR
I have a shell application in Angular that currently renders applications in web component mode, using ax-lazy-element (Angular Extensions Elements). All communication between the parent shell ...
0
votes
0
answers
33
views
Nuxt SSG - SEO for modals
My clients need SEO for modals. Yeah, and it really works with SSR. But recently they decided move to SSG because it is landing part. Is it even possible to have SEO for modals with SSG?
Lets say we ...
0
votes
0
answers
50
views
Next.js - localized static builds for each language
I need to generate a simple static website build for all the languagues defined in translations.json and I've decided to use Next.js with Page router. Let's say I have:
en: {
title: 'Hello World',
...
0
votes
1
answer
35
views
Dynamic getStaticPaths in Next.js SSG for unknown value
I’m working with Next.js Static Site Generation (SSG) and need to generate static paths for a route like /recovery-password/[token]. However, the token value is unknown in advance and changes every ...
1
vote
0
answers
137
views
Angular 19 SSG - how to use custom server (logic)?
I want to make the step to SSG with our NX/Angular 19 applications. SSG is easy to implement and works fine. We use a design system based on StencilJS components, so I need to add logic to hydrate ...
0
votes
0
answers
129
views
nextjs client side dynamic app routes is not working in production but working well in dev
When I forget the password, mail sent to my gmail through nodemailer and I get this http://localhost:3000/password/reset/d325795aa2ce721f63c805b695b6e96b3dd255f4
In production the url with this domain:...
2
votes
0
answers
88
views
How to make next.js build show all static files generated without squashing?
I build by next.js app like so
next build
and the output is
...
Route (app) Size First Load JS
┌ ○ / ...
3
votes
0
answers
204
views
Working example of App-Shell in Angular 19?
Does someone have a rudimentary but working example of using the App-Shell-Pattern in Angular 19?
The docs on angular.dev are very poor, and all the articles that could be found are either on a lower ...
0
votes
1
answer
66
views
Nuxt 3 lifecycle hook for end of generate (SSG)
I have an idea for a Nuxt module that I would like to run at or near the end of the generate process. The module would need to examine the contents of .output/public/ and write a report to disk. ...
2
votes
0
answers
200
views
Angular 19: Prerendered page with dynamic components in it
I am having the landing home page which is likely to be prerendered, but it contains section with products categories which are gotten from BE API, so in this case that section cannot be completely ...
3
votes
1
answer
254
views
Next static page on Vercel first load is not cached
I have some statically generated pages in my Next app (app router).
When I build the app locally, those pages are rendered immediately on navigation, as I would expect.
The same app deployed to Vercel ...
2
votes
1
answer
204
views
Alpine.js it's ssr or ssg framework?
I have a question about apline.js . Sorry if it's stupid, but I didn't find answer in the off documentation. What kind of rendering does apline.js?
I understand that he doesn't have a v-dom, but I ...
0
votes
0
answers
121
views
How to generate a single static page by path during Next.js build?
I'm working on a Next.js project and I'd like to optimize the build process by generating only a single static page based on its path, instead of rebuilding the entire application.
For example, if I ...
1
vote
0
answers
244
views
Blog with Dynamic Routing via Content Collections in Astro (SSG Mode)
I'm having trouble with dynamic routing in Astro. I'm working with a Content Collection called "Articles" and then created a route: [slug].astro. However, the slug does not resolve to the ...
0
votes
0
answers
414
views
Purpose of generateStaticParams in next js, and is it worth it?
I've been reading the next.js docs, and there are two things that puzzle me about the generateStaticParams.
#1: 1st thing that puzzles me is the paragraph at https://nextjs.org/docs/app/building-your-...
0
votes
0
answers
147
views
Nuxt3 / Storyblok full SSG
i'm currently building a blog that get it's content from Storyblok API.
i want my blog to be full static and for that i use the "npm run generate" that work almost as i want. There's one ...
2
votes
0
answers
667
views
Angular Universal (19) SSG and SSR Hybrid, does not serve static files
I'm playing with new ( v19 ) Universal.
Im trying to use Hybrid approach, so some pages like home, about, products would be prerendered in build time ( SSG ) while 'dynamic' pages like checkout or my-...
1
vote
0
answers
95
views
Why are template strings in 11ty not rendering values from JSON content files?
I'm using 11ty to build a simple static site and have structured my project into templates and content directories. The template strings in my Nunjuck .njk templates are not rendering values from ...
5
votes
2
answers
1k
views
Angular SSG Prerendering gives timeout when rendering big numb of urls (V17+)
I have angular v19 app and I'm using SSG with following angular.json settings
{
...
"prerender":{
"routesFile": "prerender-urls.txt",
...
1
vote
1
answer
126
views
Nuxt3 config to fetch the data from rest api and generate static page based on fetched data
I'm trying to generate a static page with nuxt 3 but no luck. I fetch the data from wordpress rest api (https://172.27.0.4/wp-json/...), nuxt works on http://0.0.0.0:3000, so I added this to nuxt....
0
votes
0
answers
346
views
Pre-render SSG Vue 3 with Vite and Options API
I've been looking for a plugin to pre-render some of the pages of my vue 3 app but so far I've been unlucky. I use Vite and the Options API, any suggestion?
I tried vite-ssg but it includes unhead ...
1
vote
1
answer
598
views
Vite React SSG Redirection
I am trying to make my website redirect to a 404 page when the path is not set, using vite-react-ssg and react-router-dom. I need to use SSG because of pre-rendering.
I can't find any documentation on ...
0
votes
1
answer
233
views
Unable to host nextjs app(SSG) with base Path in Azure static web app
I have a nextjs app with basePath set.
//next.config.mjs
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
basePath: '/app1',
output: 'export',
webpack(config, { isServer }) {
...
-2
votes
1
answer
84
views
SSGs with "dynamic" content
I'm trying to create a blog with static pages.
That's when i learned about SSG such as Hugo and Zola. Here's my question, imagine i want to have a "recent articles" section and a "...
0
votes
1
answer
54
views
Next.js How to load SG file at CSR page
What I want to do
to load the SG page generated at build time in the CSR page.
app/
SG/[id]/product/page.tsx
CSR/page.tsx
(Next version is 14)
The HTML output file of the CSR is assumed to be as ...
0
votes
1
answer
196
views
How to Deploy Angular SSG on IIS
I have an angular SSG (Site Static Generation) and I need to deploy on IIS 10 server.
For each html generated file, angular created a folder page1.html/index.html where page1 is a folder.
So it ...
0
votes
1
answer
67
views
Dynamic meta deta is not updating as expected due to production static site generation
Guys i am fetching meta setting (set from admin panel) from mongodb then i pass it to generateMetadata function
this add dynamic meta data in localhlost as page is always server side rendered but in ...
1
vote
1
answer
385
views
SSG on NextJS: is it possible to only build changed pages without ISR?
Does NextJS have the ability to cache static pages between builds?
So, for example, when I add a new piece of content without changing the code, a build should just incrementally build that new ...
1
vote
2
answers
233
views
Fetch without Rebuild next js
I use NextJS and I'm trying to make a static site with Wordpress as a backend, I managed to deploy my site with GitLab which deploys to an FTP server.
My problem is that I have to rebuild each time to ...
-1
votes
1
answer
251
views
Nextjs 14 pages folder, output:"export" is not working
I'm working on nextjs 14.2 version with pages folder. I don't have any images, /api routes or anything yet. This is an old nextjs app, updated to latest version.
When I run npm run build, it is not ...
0
votes
0
answers
153
views
Angular Prerender(SSG) trouble
Prerender allows you to generate static pages from a route map. This is necessary for SEO, because by default Angular gives empty html.
If you pass /post-1, /post-2 to the preender, it will generate ...
-1
votes
1
answer
147
views
Generating static pages fails at build time
I am new to nextjs. My application has pages that call the backend API using axios. The application is a template and it came with mocked API. For production, obviously I want to disable mocking and ...
0
votes
1
answer
619
views
NextJS14 Static Site Generation (SSG) and Authentication using Clerk
I'm facing a classic dilemma with Next.js Static Site Generation (SSG) and protected routes. I understand that SSG requires data to be available at build time, while protected routes depend on user ...
1
vote
1
answer
117
views
Prerender or SSG for a leaflet react page
Is there a method to prerender a page which is mainly a huge leaflet.js window ?
The window is always starting out at the same coordinates so It would be beneficial to prepare the initial view at ...
1
vote
0
answers
148
views
Links not working in angular 18 app with ssg
I have a very simple website built with angular 18 and want to use SSG. I have set it all up and ng build does generate all the necessary files. The only thing not working is the links from on part of ...
0
votes
0
answers
36
views
next.js page doesn't return a html router,ssg
when I refresh the page,it work,network has html.But if I use next link to the page,network doesn't return html.In code I use getStaticProps and getStaticPaths.And when I run build,I can see the /...
0
votes
1
answer
646
views
Why do we use generateStaticParams() when dynamic route params are already passed to page components?
In Next.js 14, dynamic route params are automatically passed to your page component. For example if you have a dynamic route products/[productid]/[variantid] your pages under those dynamic route ...
0
votes
0
answers
171
views
Why Do I See Pre-Rendered HTML in Source Code When Using 'use client' in Next.js?
js Community,
I'm working on a Next.js application and have some confusion regarding pre-rendering and client-side rendering. I've been using the 'use client' directive at the top of my components to ...
2
votes
1
answer
213
views
Process eleventy shortcodes in markdown-rendered FrontMatter data
I'm using 11ty with Decap CMS for a client webiste.
I have several front-matter fields to add markdown content (I need to add Markdown content to boxes in several locations) .
I render the markdown ...
9
votes
1
answer
10k
views
Confusion about SSG and SSR in Angular 18
I'm currently running a small Angular 13 application on GitHub Pages and I want to update it to Angular 18 to use the new features. Additionally, I'm thinking of moving to SSG, to improve the user ...