Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
20 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 ...
Abdullah moiz's user avatar
1 vote
1 answer
25 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 ...
user313724's user avatar
  • 3,495
0 votes
0 answers
9 views

cant use get static props with server side props , is there any other way to get referer url dynamically?

So in my use case I want to use both server side rendering and static generation . Here is my use case export const getStaticProps: GetStaticProps = async (context: any) => { const store = ...
Rishabh Ahuja's user avatar
1 vote
2 answers
45 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 ...
Ben's user avatar
  • 11
-1 votes
1 answer
37 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 ...
Kalyan's user avatar
  • 315
0 votes
0 answers
22 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 ...
Илья's user avatar
-1 votes
1 answer
29 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 ...
rentall devops's user avatar
0 votes
0 answers
42 views

NextJS App router: Generate static subdomains, and access it in page file

I'm using NextJS 14, with App router. We are having a multi-tenancy website, so we have dynamic subdomains. We are having output: 'export' inside the next.config.js file, which means that no dynamic ...
Affan Ansari's user avatar
0 votes
1 answer
93 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 ...
BlackLabrador's user avatar
0 votes
1 answer
33 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 ...
JKJ's user avatar
  • 567
0 votes
0 answers
45 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 ...
hemmoleg's user avatar
  • 154
0 votes
0 answers
14 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 /...
陈俊江's user avatar
0 votes
0 answers
63 views

Application not working correctly with SSG

I am trying to add SSG to my application but now I am in the dead end after trying several things and it is still not working correctly. The whole application can be found here (also with dist to see ...
Raadush's user avatar
  • 71
0 votes
0 answers
27 views

How can I add a 'cover image' to collection items in the admin panel?

Using Decap CMS (formerly Netlify CMS) -- In the admin dashboard, how can I add a cover image/thumbnail to a collection item using the _data directory? On the demo site from their documentation: https:...
aaron_garcia_7's user avatar
0 votes
0 answers
8 views

Generate SSG pages after the build in NextJS

Consider page home/[slug], slug is fetched from db on build time to generate SSG pages (home/1, home/2). After the build a new entry (3) is added to db, it does server side rendering to show home/3 ...
S.Nishant's user avatar
  • 170
0 votes
1 answer
103 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 ...
muzykfs's user avatar
  • 62
0 votes
0 answers
87 views

How to statically generate a page in Next.js app router

I am using Next.js App Router. I have a page /blogs that should display the titles of all the blogs. I am using markdown for the blogs and they are stored inside blog-content folder of src folder. And ...
Noor Fatima's user avatar
0 votes
0 answers
28 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 ...
kholio mudrich's user avatar
2 votes
1 answer
45 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 ...
vermar's user avatar
  • 57
0 votes
0 answers
24 views

Next.js App router behavior in building a page when generateStaticParams is provided and layout is dynamic

this is my folder structure I am using next.js 14 in root layout i use user data to display user avatar which cause all pages become dynamic in page.js inside /cabins/[cabinId] i have exported ...
hamid-beigi's user avatar
0 votes
0 answers
59 views

Deployment of Static Site Generation (SSG) in next.js 14 version

I need to build a Next.js app where I have Static Site Generation (SSG) pages. This means that I want to generate static pages at build time. I need to get information for my static pages from a ...
Денис Могила's user avatar
0 votes
0 answers
17 views

How to call @vercel/og image endpoint from getStaticProps?

I have set up dynamically generated OG images that I also want to use as header image for my blog posts. I have set it up using @vercel/og in Next.js, but it takes forever to dynamically call the API ...
swedishtea's user avatar
3 votes
2 answers
1k 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 move to SSG, to improve the user ...
Wesley's user avatar
  • 285
0 votes
1 answer
315 views

Error 'SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON' when Fetching Internal API for SSG with NextJS AppRouter on Vercel

I have a Next.js application with the following code: export default async function StaticSiteGenerator() { const res = await fetch(`https://{DOMAIN_NAME}/api/data`); const data = await res.json();...
user25401403's user avatar
0 votes
1 answer
144 views

How enable ISR on dynamic page routing with next.js 14 app router?

I have an e-commerce website created with Next.js. I have some routes like: 1. allproducts/page.js 2. allproducts/allproductsbycategories/[...id]/page.js For the first routing, ISR is enabled, but ...
sébastien petit's user avatar
0 votes
1 answer
138 views

Adapter static doesn't properly crawl links in svelte components

Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app: - /changelog I got this error and running build with my ...
Justin's user avatar
  • 1,029
2 votes
1 answer
37 views

How to prevent redundant data fetching script (application/json) in static adapter-generated HTML?

I'm using SvelteKit to build a static website with the static adapter for server rendering. I've noticed that in the generated HTML files, there's a script that fetches the same data that's already ...
Friedrich Siever's user avatar
0 votes
0 answers
81 views

Caching images fetched from API in the Svelte build folder using static adapter

I typically use 11ty as a static site generator, but I'm trying out Svelte for more interactivity on a site I'm developing now. I'm using Strapi as a CMS in a logic that I've used with 11ty before: ...
werls's user avatar
  • 1
0 votes
0 answers
21 views

Static route nested within dynamic route behaving as dynamic

I'm new to learning Next.js, and based on my understanding, routes are static by default unless they're calling a dynamic method such as noStore() or cookies(). Say you have a scenario, where you have ...
Ilya Turchenko's user avatar
0 votes
0 answers
38 views

Angular 17 Prerender handle API errors

I have an Angular project version 17.2.1 and I started using Prerender for SSG loading. I don't find any document showing what happens if an Api request returns 500 or 504 or 400 or 499. I want to ...
Behnam Aminazad's user avatar
1 vote
1 answer
605 views

How to Generate Static Pages in Next.js after build for Large E-commerce Sites?

I have developed an e-commerce website using Next.js with page routing and Laravel as the API backend. The site currently hosts around 10,000 products, and I need all product pages to be statically ...
Abolfazl B's user avatar
0 votes
1 answer
112 views

Static NextJs Site hosted on s3 not routing correctly to subroutes

I have a statically generated nextjs site. My /out folder in nextjs (and the root folder in s3) looks like this: | index.html | index.txt | neighbors.html | neighbors.text | 404.html |- neighbors | ...
Steven Harlow's user avatar
0 votes
1 answer
117 views

Next JS app built using output: 'export' not rendered properly

The Next JS app built using output: 'export' not rendering the CSS properly. To Reproduce Create new nextjs app Update next config to output as static site Open the outputted page from out folder ...
Dark Shadow's user avatar
0 votes
2 answers
130 views

SvelteKit doesn't deploy properly, what do I change?

I developed and app in SvelteKit, and I wanna deploy it as a static site. This is my SSG adapter configuration I got from the documentation. const config={ kit: { adapter: adapter({ ...
Ray M's user avatar
  • 90
3 votes
0 answers
408 views

Using hashes for Content Security Policy in statically generated sites (SSG) in Next.js 13.5

I'm trying to understand how to implement a strict CSP in Next.js 13.5 using SSG. This is a simple informational site under 20 pages including a locally-served MDX blog. It's JS based, not Typescript. ...
VanAlbert's user avatar
  • 2,449
0 votes
0 answers
40 views

nextjs ssg response analysis

I have a web server that runs next.js 12.0 I know that SSG and Build manifest are for generating static html pages to display the users over the cloud. My site mostly has static pages, same for all ...
C.Unbay's user avatar
  • 2,787
0 votes
0 answers
66 views

Is there any method to convert vite-ssg javascript file to Shift_JIS encoding

I'm building application using Vue 3, Vite and Vite-SSG for static files generation. When I built using Vite-SSG, the dist folder is encoded with UTF-8 (or ASCII). I need to have all my static files (...
louisphn's user avatar
  • 181
0 votes
1 answer
297 views

Next.js Static Paths Working Locally But Returning 404 on Azure Deployment

Using Free Hosting plan in Azure. I am using Next.js features like getStaticPaths and getStaticProps to optimize my web application by pre-rendering pages. The application works perfectly locally, but ...
Ayo Adesina's user avatar
  • 2,337
1 vote
1 answer
99 views

Why does Hugo generate different taxonomy-related HTML on different OS's?

I have modified the Ananke theme for Hugo for my own purposes, the modifications are here. The key change was that I wanted a list of linkable tags (that the theme already put at the bottom of every ...
executor21's user avatar
  • 4,588
0 votes
1 answer
96 views

Global CSS is not properly loading with SSG in Next JS - CORS error?

I'm using React, Next JS, and styled-components. Right now I've followed the documentation and have the following file structure. I want to simply get a global CSS working on a STATIC HTML page. I ...
killamocingbird's user avatar
1 vote
0 answers
226 views

Server Side Rendering of Dynamic URL using NUXT 3

I am using NUXT3 for one of my project. I am able to nuxt generate the dist folder for SSG. Now I am having dynamic url for my project. That is /page/resources/[post].vue , Based on the passed route ...
Shriram Naik's user avatar
0 votes
0 answers
115 views

Can in do static site generation for an client side components

Im new to nextjs, I just trying to wrap my head around this new model. I think i now understand that were have rendering techniques like static site generation (SSR) and server side rendering(SSR). ...
Seven's user avatar
  • 21
0 votes
0 answers
77 views

Search Params Issue on the Next.js Static Site (S3)

I have two headers in my Next js Static site (S3) project. When I'm toggle headers based on search params getting default header first and then route to actual header. I know it's due to availability ...
DHARMANA RAJASEKHAR's user avatar
0 votes
0 answers
54 views

Update data on a SPA created with Next.js and SSG

I created a Single Page Application that have data (products) that are updated every few days. I deployed my application on a Hostinger server with Static Site Generation. I would like to update my ...
Niram96's user avatar
0 votes
0 answers
100 views

Code splitting in a React and Vite SSG UI library

I have spent hours going over Vite documentation and git-issues and tried a number of things but nothing seems to allow code splitting in SSG library mode. This is really annoying as you want to be ...
John williams's user avatar
0 votes
0 answers
171 views

How to refresh SSG (ISR) in next.js without requiring a page refresh

I have a next.js app using pages router, and tRPC/useQuery, hosted on vercel. It has public dynamic pages setup for events. The url would be something like /events/[slug]. These pages should load fast ...
ce-loco's user avatar
  • 377
0 votes
0 answers
62 views

Can we integrate Flutter pages into Hugo

Looking to integrate specific flutter pages and stateful widgets in Hugo. If we can't do specific widgets then how to include the whole application. I have referred to this flutter code but how can we ...
Sulabh Rastogi's user avatar
1 vote
0 answers
218 views

when applied ssg in next.js 14 not working app/api

Is there a way to use the API feature of the app router when building with SSG using Next.js version 14? It seems that the code implemented through the API feature is not available when built with SSG....
Kyungwon Kwon's user avatar
0 votes
0 answers
75 views

Next.js high connection count with SSG

I have a nextjs site with about 7800 product pages. The site runs completely fine when I have the product pages setup as SSR with getServerSideProps. However, if I switch them to ISR, I quickly run ...
Justin Lok's user avatar
  • 1,252
0 votes
0 answers
12 views

Can I pre-render non page components if all the inputs are known in advance

The homepage of my app renders a sample of data points from a known set, each data point is rendered with the same template and the set itself is finite. I want to decide which items are part of the ...
maja's user avatar
  • 759

1
2 3 4 5