Questions tagged [static-site-generation]
The static-site-generation tag has no usage guidance, but it has a tag wiki.
static-site-generation
216
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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();...
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 ...
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 ...
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 ...
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: ...
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 ...