Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [static-site-generation]

The tag has no usage guidance, but it has a tag wiki.

static-site-generation
0 votes
0 answers
13 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
16 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
15 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
1 vote
0 answers
14 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
  • 37
0 votes
0 answers
8 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
21 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
9 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
0 votes
0 answers
35 views

Custom authentication using Decap CMS

I am trying to build a static site generator similar to this I want to use my own custom auth in my Hugo + Decap setup. Also how do I make sure that the changes in admin panel go to my Azure devops. ...
Prem Kumar's user avatar
2 votes
2 answers
208 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
  • 275
0 votes
1 answer
104 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
69 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
89 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,019
0 votes
1 answer
21 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
44 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
17 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

15 30 50 per page
1
2 3 4 5
15