Static Site Generators (SSG) are frameworks that build websites from static content. For example, one can build an online blog from a list of text files.
Questions tagged [static-site-generation]
178 questions
2
votes
0 answers
Minimal svelte + vitejs configuration for pre-rendered single-page app?
I have a very basic setup for Svelte with ViteJS for a single-page app that requires no routing and has all dependencies inlined by the vite-plugin-singlefile plugin.
The one thing that I cannot get to work is pre-rendered markup.
I would like to…

John Goofy
- 866
- 8
- 22
2
votes
0 answers
is it possible to create a delay between each page build? (Next.js ISR)
I am working on some project that I need to use ISR on, the pages critical info come from a third-party API, the problem is that this API allows only a maximum of 15 requests per second while the pages I need to be generated are hundreds and it…

Rashad AL-Maqtary
- 53
- 6
2
votes
2 answers
Multi-level pagination in 11ty?
All the documentation I've found on Eleventy pagination has to do with a single level, and I've got that working pretty well.
Take a collection (ex. of tags) and create one page each
Take a collection of posts and put 10 on each page
and so…

Kelson
- 106
- 1
- 6
2
votes
0 answers
Show changes immediately with static site render web
I build a simple blog CMS with Static Site Generation web.
However, I have less trouble catching the flow.
The user creates a new blog article and I need to see the changes on the statically generated site immediately (website is on a netlify…

TheDareback
- 397
- 5
- 17
2
votes
1 answer
Issue deploying Nuxt static site to Netlify using Github
I'm having issues deploying my Nuxt static site (build with Bootstrap Vue and using Wordpress Rest API) to Netlify using Github. When I deploy it manually it works just as expected. But when I use Github it gives me the "Page Not Found-message" for…

Diana Nilsson
- 23
- 3
2
votes
0 answers
Gridsome cookie SameSite settings
I have a site developed in Gridsome that would be deployed in AWS S3 as static content, but images for this site are located at a different static site.
I am having plenty of "Indicate whether to send a cookie in a cross-site request by specifying…

bensiu
- 24,660
- 56
- 77
- 117
2
votes
1 answer
How can I exclude an image from Hugo's public directory?
I'm using Hugo to generate a static site. I'm making use of Hugo's image functions to create different sized versions of the same image (160px, 240px, and 480px).
That's all working fine but Hugo also makes the original image available (e.g.…

Matt
- 9,068
- 12
- 64
- 84
2
votes
1 answer
Redirect based on header OR cookie in Next.js next.config.js
We're using Next.js and want to route all paths (not just root) to locale-based paths based on the browser Accept-Language header. However, if the user SETS their region, we will set a cookie that would need to be checked first to respect user…

Augusto Samamé Barrientos
- 1,314
- 14
- 36
2
votes
1 answer
Two Level Menus in Hugo
I want to create a site with deep menus using Hugo. I want the ability to make child items parents to new lower-level items.
I tried using this site's tutorial.
https://codingnconcepts.com/hugo/nested-menu-hugo/
I am able to create one-level…

Gavin
- 45
- 1
- 8
1
vote
0 answers
Next.js 13 app directory static site generation and show without props drilling
**I face a problem when I am making an API request with Next.js SSG and SSR. **
I am getting the API data very well. But I want to show the data inside a nested component. But I don't want to do props drilling...
import CompA from "./CompA";
const…

MD SHEHAB
- 11
- 1
1
vote
1 answer
How to handle file versioning and caching for NUXT.js deployed on Firebase Hosting?
I use NUXT3 to generate "Static Site Generation" files with hash version, and deploy static file hosting to "Firebase HOSTING".
The browser client is lazy-loading JavaScript files when navigating to each page.
The problem is: when I deploy a new…

riseres
- 3,004
- 4
- 28
- 40
1
vote
0 answers
Next.js Static Site Generator but pure html
How can I get Next.js to generate pure html as the page is rendered and not all this extra overhead. My index page is just a list of links. I just want index.html. Is that possible?
Edit : How to get around api routes not working with export? I…

Hassan Voyeau
- 3,383
- 4
- 22
- 24
1
vote
1 answer
How can I serve a static page with responsive design in Next.js without affecting SEO?
I'm trying to serve a static page in Next.js with responsive design for different device sizes. I am using both CSS media queries as well as JS responsive tools so it should have different layout for different screen sizes.
For a fully static site,…

Vivek Ghimire
- 57
- 1
- 5
1
vote
1 answer
Static component in Next.js 13 and /src/app even when I set headers: { Authorization: 'x'} in fetch
I'm using Next.js 13 in its experimental mode with the /src/app folder and I have the following component
@/components/LinkList.jsx
const readLinks = async () => {
return fetch(process.env.URL, { headers: { Authorization: '' })
.then(response…

Elliot Garamendi
- 21
- 3
1
vote
0 answers
Next.js slow performance with static html exprt
I have a simple one page app built with Next.js and mui. There's no real js dependency after page is rendered.
I want to export the app to a static html file using Next's feature Static HTML Export
When I deploy the app regularly (e.g. with node js)…

GEV
- 397
- 2
- 9