Questions tagged [static-site-generation]

No guidance has been provide for this tag as of yet!

transmit data retrieved from `getStaticProps` to other static pages in NextJS

While working on my project, I encountered the task of fetching a large JSON dataset from an external API within the getStaticProps function. This dataset needs to be divided into multiple parts and passed as props to numerous static pages (potentially hun ...

Error in CPanel: NextJS Static Export is failing to load due to missing JS chunks, CSS, and SVG files

Recently, I have discovered that when using VSCode Live server to host static files locally, everything seems to work perfectly. This led me to believe that the issue may lie in how CPanel deals with static files. Could it be causing the 404 not found erro ...

Having trouble creating a static site using @sveltejs/adapter-static when Bootstrape is installed

I started my project with SvelteKit by running npm create svelte@latest my-app Afterwards, I included Bootstrap in the project using npm install bootstrap. Then I imported Bootstrap's css and js files into the root layout as shown below: The content of s ...

Nextjs application routers offer dynamic routing functionality and the ability to generate metadata

Struggling with static site generation while building a blog site in nextjs with app router? If you've read through Next.js official documentation and still need assistance, check out my project structure pictured https://i.stack.imgur.com/ZOYkf.png. ...

Tips for integrating NextAuth.js with SSG (static site generation) on a Next.js site

When working with Next.js, you have the option to construct your website using either server-side (SSR) or static client-side (SSG) rendering. However, a common issue arises when running next build && next export as it eliminates the /api routes. ...

What is the rationale behind transmitting JSON data within HTML in Next.js's static site generation (

When a webpage is loading, the entire HTML document is sent, whereas in client-side routing, only the JSON file and JS chunk are sent. But why does the HTML file filled with data need to contain JSON data too? Is it really necessary since we already have ...

A guide on successfully implementing Nuxt-img on nuxt3 generate!

I've been experimenting with nuxt-image on NUXT3, but I've run into an issue when using the generate command. While images display correctly during development, they return a 404 error when using nuxt generate. In my nuxt config, I have: modules: ["@nuxt/ ...