Questions tagged [ssg]

68 questions
1
vote
1 answer

Internationalizaton of next.js website through subpath not working on sub-directories?

I'm trying to internationalize my website through the subpath feature of next.js. Here is my module.export : /* eslint-disable prettier/prettier */ module.exports = { i18n: { defaultLocale: 'fr', locales: ['en', 'fr'], }, react: { …
1
vote
0 answers

Nextjs, catchall, static generation and redirects

I have a website using nextjs 10.1 I am using SSG and a catchall strategy, i.e. under /pages, I have -pages --[...slug] ---index.tsx and in my index.tsx I have export const getStaticProps: GetStaticProps = async (context: any) => { const { params,…
1
vote
2 answers

Real time content update with Storyblok not working in production environment Next.js

I am working on a JAMstack website using Next.js (SSG) and Storyblok (Headless CMS) and using the Storyblok Content Delivery API to fetch the content from Storyblok. I have created the Storyblok service that has Storyblok configurations and Bridge…
1
vote
2 answers

Is it possible to use API Routes for building pages in Next.JS getStaticProps/getStaticPaths?

I'm making static Next.JS app with MongoDB. In my static Next.JS app can I use api routes for building pages? For example, using GET method for getting products in getStaticProps? Or it's bad approach. Now I'm using classic way from documentation…
andrewnosov
  • 374
  • 4
  • 14
1
vote
2 answers

How to avoid loading for nonexistent static pages?

I'm making e-commerce Next.js static app. For my products pages I'm using incremental static generation (I'll call it ISG further) with fallback: true and simple useRouter for showing loading component (like spinner or something else, it doesn’t…
andrewnosov
  • 374
  • 4
  • 14
0
votes
0 answers

Nuxtjs The fetch hook doesn't happen at build time, it runs on the client

target: 'static' ssr: false I have configured my project with ssg. If you look at fetch in the official nuxt documentation, it says that fetch is executed when a page is created and cached in the client. However, when data is fetched from fetch and…
0
votes
0 answers

V-if with SSG causes flicker during page load

I’m using Nuxt which does both static site generation (SSG) and server-side rendering (SSR) My app hits a graphQL API for content using Apollo smart queries (@nuxtjs/apollo). Before the API returns I can safely use {{post}} Without an errror, but if…
codycustard
  • 448
  • 1
  • 4
  • 10
0
votes
1 answer

Hugo Replace but Ignore Case-sensitive

With this code but without case sensitive. I want replace all word contain Esports, esports, eSports, ESports etc.. {{ $content := replace $content "Esports" "Esports" 1 }}
mobagenie
  • 31
  • 4
0
votes
2 answers

Nuxt.js SSG (Static site generator) fetch API data

When building a project with the static site generator, I understand that the document created in advance is provided to the user. If there is a logic that fetches data using axios, etc. and displays it on the screen when entering the page, does the…
0
votes
0 answers

Next.js getStaticProps additional params?

I am wondering if its possible to add additional params inside the getStaticProps function? because I want to query the posts in its category name instead of the category slug so here is what it looks like export const getStaticPaths: GetStaticPaths…
0
votes
2 answers

Eleventy static site generator with strapi CMS

I am new in website development using Static site generator and Cms, I am developing one static website using eleventy SSG and Strapi CMS. All my contents are stored in CMS. (I Assume all you know about SSG and CMS). Now I have doubt about contents,…
0
votes
1 answer

Is the output of Next.js SSG build, SEO friendly?

I would like to know if the output generated by nextjs SSG build is SEO friendly, the same way as using nextjs with SSR. The reason I am asking is, because I would like to build a full stack app with React frontend (Django/DRF backend for what is…
0
votes
1 answer

what to do to fetch initial data of components in _app.js page?

I have a navigation bar that has a dynamic prop and data of this props should be fetched from API in getStaticProps. the navigation bar should be displayed in all pages of my website. so the best way to display the nav bar in all pages of my website…
Saman
  • 171
  • 13
0
votes
0 answers

TGS-407 - Course run not found error while doing individual enrollment

I am getting 'TGS-407 - Course run not found' while trying to upload individual student enrollment to SSG. Please help me on this.
0
votes
0 answers

What is the best way to add scripts in Nuxt 3, for SSG pages?

I am porting over an older website into Nuxt 3. This older website has numerous