Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSG with crawling pages that use async slugs for routes from a CMS won't respect useAsyncData #3229

Open
WaldemarEnns opened this issue Nov 14, 2024 · 2 comments

Comments

@WaldemarEnns
Copy link

WaldemarEnns commented Nov 14, 2024

Discussed in #3184

Originally posted by WaldemarEnns October 19, 2024

Description

Hello there! My setup is quite easy:

  • Nuxt 3
  • Strapi 4 (headless CMS)
  • nuxt-i18n v8

ℹ See details and code below.

ℹ️ Use the original repo as a reproduction: https://github.com/WaldemarEnns/portfolio

I use SSG for generating my /posts route, which contains a NuxtLink / NuxtLinkLocale to redirect to the /posts/[slug].vue page, where the slug is a value that I fetch using useAsyncData fom my CMS. The slug is a translated string.

My issue: Whenever I execute npm run generate, my /posts page is being crawled by the nitro crawler (due to SSG -> see https://nuxt.com/docs/getting-started/prerendering#crawl-based-pre-rendering) and then the output is basically all possible combinations of /{locale}/posts/{slug} instead of only using the correct slugs for the correct current locale.

Example: Expected output

/en/posts/nice-to-meet-you
/es/posts/bienvenido
/posts/schoen-dass-du-hier-bist

Example: Actual output

/en/posts/nice-to-meet-you
/en/posts/bienvenido
/en/posts/schoen-dass-du-hier-bist
/es/posts/nice-to-meet-you
/es/posts/bienvenido
/es/posts/schoen-dass-du-hier-bist
/posts/nice-to-meet-you
/posts/bienvenido
/posts/schoen-dass-du-hier-bist

As you will notice: I am adding custom prerender routes to my nuxt.config.ts in a prerender hook to allow my dynamic and translated blog-post pages to be prerendered as well.

What I noticed

I noticed that due to how nuxt-i18n works, the nitro-crawler crawls the /posts page and notices the NuxtLink component. It then renders the /posts page for each available locale but does not effectively wait for useAsyncData to retrieve the correct posts slug to use it for each individual locale - so I end up with all slugs being passed around to all locales, resulting in all possible combinations being prerendered (see output below).

Commenting out that NuxtLink results in my /posts pages being prerendered correctly but of course, my /posts/[slug].vue pages are not prerendered at all (I am wondering why, since I have added those routes within my nitro prerender hook?).

Code examples

nuxt.config.ts

import type { Strapi4ResponseMany, Strapi4ResponseData } from "@nuxtjs/strapi"
import type { Post } from "./types/strapi"

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-04-03',
  devtools: { enabled: true },

  css: [
    '~/assets/css/main.css',
    '@fortawesome/fontawesome-svg-core/styles.css'
  ],

  build: {
    transpile: ['@fortawesome/vue-fontawesome'],
  },

  postcss: {
    plugins: {
      tailwindcss: {},
      autoprefixer: {},
    }
  },

  plausible: {
    ignoredHostnames: ['localhost'],
  },

  routeRules: {
    '/': { prerender: true },
    '/imprint': { prerender: true },
    '/privacy-policy': { prerender: true },
    '/posts': { prerender: true },
  },

  runtimeConfig: {
    strapi: {
      url: process.env.STRAPI_URL
    },
    public: {
      supabaseUrl: process.env.SUPABASE_URL,
      strapi: {
        url: process.env.STRAPI_URL
      }
    }
  },

  pages: true,

  modules: ['@nuxtjs/i18n', '@nuxtjs/sitemap', '@nuxtjs/robots', '@nuxtjs/strapi', '@nuxt/test-utils/module', '@nuxtjs/plausible'],

  i18n: {
    baseUrl: 'https://waldemarenns.de',
    locales: [{
      code: 'en',
      file: 'en-US.json',
      iso: 'en-US',
      name: 'English',
      flag: '🇺🇸'
    }, {
      code: 'de',
      file: 'de-DE.json',
      iso: 'de-DE',
      name: 'Deutsch',
      flag: '🇩🇪'
    }, {
      code: 'es',
      file: 'es-ES.json',
      iso: 'es-ES',
      name: 'Español',
      flag: '🇪🇸'
    }],
    lazy: true,
    langDir: 'lang',
    defaultLocale: 'de',
  },

  site: {
    url: 'https://waldemarenns.de',
    name: 'Waldemar Enns',
  },

  sitemap: {
    urls: async () => {
      const strapiUrl = process.env.STRAPI_URL
      let postsResponse
      if (process.env.NODE_ENV === 'production') {
        postsResponse = await fetch(`${strapiUrl}/api/posts?publicationState=live&locale=all&pagination[page]=1&pagination[pageSize=1000]`)
      } else {
        postsResponse = await fetch(`${strapiUrl}/api/posts?publicationState=preview&locale=all&pagination[page]=1&pagination[pageSize=1000]`)
      }
      const posts: Strapi4ResponseMany<Post> = await postsResponse.json()

      const routes = posts.data?.map((post: Strapi4ResponseData<Post>) => {
        const locale = post.attributes.locale
        const slug = post.attributes.slug

        if (locale === 'de') {
          return `/posts/${slug}`
        } else {
          return `/${locale}/posts/${slug}`
        }
      }) || []

      return routes
    }
  },

  robots: {
    sitemap: '/sitemap_index.xml',
  },

  hooks: {
    async 'prerender:routes'(ctx) {
      const strapiUrl = process.env.STRAPI_URL
      const postsResponse = await fetch(`${strapiUrl}/api/posts?publicationState=live&locale=all&pagination[page]=1&pagination[pageSize=1000]`)
      const posts: Strapi4ResponseMany<Post> = await postsResponse.json()

      const routes = posts.data.map((post: Strapi4ResponseData<Post>) => {
        const locale = post.attributes.locale
        const slug = post.attributes.slug

        if (locale === 'de') {
          return `/posts/${slug}`
        } else {
          return `/${locale}/posts/${slug}`
        }
      })

      for (const route of routes) {
        ctx.routes.add(route)
      }
    }
  }
})

/pages/posts/index.vue

<script setup lang="ts">
import type { Strapi4ResponseData, StrapiLocale } from '@nuxtjs/strapi';
import type { Post } from '~/types/strapi';

const localePath = useLocalePath()

definePageMeta({
  layout: 'post'
})

const { locale } = useI18n()
const { find } = useStrapi<Post>()

const { data } = await useAsyncData(
  'posts',
  () => find('posts', {
    locale: locale.value as StrapiLocale,
    pagination: {
      page: 1,
      pageSize: 20
    },
    publicationState: process.env.NODE_ENV === 'production' ? 'live' : 'preview'
  }),
)

const isPublished = (post: Strapi4ResponseData<Post>) => post.attributes.publishedAt !== null
</script>

<template>
  <section class="container mx-auto my-12">
    <h1 class="font-bold text-2xl mb-8">{{ $t('posts.read_something_about') }}</h1>
    <div class="card bg-slate-800"
      v-for="post in data?.data"
      :key="post.id"
    >
      <div class="card-body flex flex-row justify-between items-center">
        <div>
          <h2 class="card-title block">{{ post.attributes.Title }}</h2>
          <i class="block mt-2">
            {{ isPublished(post) ? $t('post.published_at') : $t('post.edited_at') }}
            {{ formatToLocaleDate(post.attributes.publishedAt || post.attributes.updatedAt) }}
          </i>
        </div>
        <NuxtLink :to="localePath(`/posts/${post.attributes.slug}`)" class="btn btn-primary btn-outline btn-wide">{{ $t('post.have_a_read') }}</NuxtLink>
      </div>
    </div>

    <!-- <div class="flex flex-row justify-center items-start">
      <div class="join mt-4">
        <button
          v-for="i in data?.meta.pagination.total"
          class="join-item btn"
        >
          {{ i }}
        </button>
      </div>
    </div> -->
  </section>
</template>

/pages/posts/[slug].vue

<script setup lang="ts">
import type { PostBySlug } from '@/types/strapi'
import { StrapiBlocks } from 'vue-strapi-blocks-renderer'

definePageMeta({
  layout: 'post',
})

const { locales } = useI18n()
const localePath = useLocalePath()

const setI18nParams = useSetI18nParams()

const availableLocales = computed(() => {
  return locales.value.filter(i => i.code !== locale.value)
})

const robotsRule = useRobotsRule(true)

const client = useStrapiClient()

const { currentRoute } = useRouter()

const { locale } = useI18n()

const slug = computed(() => currentRoute.value.params.slug as string)

const { data, error } = await useAsyncData(
  'post',
  () => client<PostBySlug>(
    `/posts/bySlug/${slug.value}`,
    {
      query: {
        locale: locale.value,
        publicationState: process.env.NODE_ENV === 'production' ? 'live' : 'preview'
      }
    }
  ),
)

if (error.value) {
  navigateTo('/404')
}

useSeoMeta({
  title: `${data?.value?.data?.attributes?.meta_title} | waldemar enns software solutions`,
})

setI18nParams({
  en: { slug: data?.value?.data?.attributes?.localeSlugs.en },
  es: { slug: data?.value?.data?.attributes?.localeSlugs.es },
  de: { slug: data?.value?.data?.attributes?.localeSlugs.de }
})

const content = computed(() => data.value?.data?.attributes?.Content)
const title = computed(() => data.value?.data?.attributes?.Title)

const publicationDate = computed(() => {
  if (data.value?.data?.attributes?.publishedAt) {
    return new Date(data.value?.data?.attributes.publishedAt).toLocaleDateString()
  } else {
    return null
  }
})

const updatedAt = computed(() => new Date(data.value?.data?.attributes?.updatedAt!).toLocaleDateString())

function switchTranslation (locale: string) {
  const localeSlug = data.value?.data?.attributes?.localeSlugs[locale]
  return localePath(`/posts/${localeSlug}`, locale)
}
</script>

<template>
  <article class="container prose my-12 mx-auto">
    <i v-if="publicationDate">{{ $t('post.published_at') }} {{ publicationDate }}</i>
    <i v-else>{{ $t('post.edited_at') }} {{ updatedAt }}</i>
    <h1 class="block mt-4">{{ title }}</h1>
    <div class="my-4 flex flex-row justify-start items-center">
      <NuxtLink
        v-for="locale in availableLocales"
        :key="locale.code"
        class="first:ml-0 mx-2 btn btn-sm btn-info btn-outline"
        :to="switchTranslation(locale.code)"
      >{{ locale.flag }} {{ locale.name }}</NuxtLink>
    </div>
    <StrapiBlocks
      v-if="content"
      :content="content"
    />
  </article>
</template>

Executing npm run generate resolves in the following output:


> generate
> nuxt generate

Nuxt 3.13.0 with Nitro 2.9.7                                                                                                                                                                                                                                                                                                                                          9:43:43 AM
ℹ Using Nitro server preset: static                                                                                                                                                                                                                                                                                                                                  9:43:43 AM

 WARN  Locale en-US uses deprecated iso property, this will be replaced with language in v9                                                                                                                                                                                                                                                                           9:43:44 AM


 WARN  Locale de-DE uses deprecated iso property, this will be replaced with language in v9                                                                                                                                                                                                                                                                           9:43:44 AM


 WARN  Locale es-ES uses deprecated iso property, this will be replaced with language in v9                                                                                                                                                                                                                                                                           9:43:44 AM

ℹ Strapi Admin URL: http://localhost:1337/admin                                                                                                                                                                                                                                                                                                                      9:43:44 AM
ℹ Building client...                                                                                                                                                                                                                                                                                                                                                 9:43:46 AM
ℹ vite v5.4.2 building for production...                                                                                                                                                                                                                                                                                                                             9:43:46 AM
transforming (30) node_modules/@nuxtjs/strapi/dist/runtime/plugins/strapi.mjs
🌼   daisyUI 4.12.10
├─ ✔︎ 1 theme added		https://daisyui.com/docs/themes
╰─ ★ Star daisyUI on GitHub	https://github.com/saadeghi/daisyui


🌼   daisyUI 4.12.10
├─ ✔︎ 1 theme added		https://daisyui.com/docs/themes
╰─ ★ Star daisyUI on GitHub	https://github.com/saadeghi/daisyui

ℹ ✓ 285 modules transformed.                                                                                                                                                                                                                                                                                                                                         9:43:48 AM
ℹ .nuxt/dist/client/manifest.json                    4.05 kB │ gzip:   0.73 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/me-nice.DvpNxJFD.webp     50.75 kB                                                                                                                                                                                                                                                                                                         9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/DG4bOlEm.js                0.05 kB │ gzip:   0.07 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/BAuNtLH8.js                0.39 kB │ gzip:   0.27 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/DMc_d7rI.js                1.11 kB │ gzip:   0.70 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/gVPKDidy.js                1.19 kB │ gzip:   0.62 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/DQzosCdq.js                1.94 kB │ gzip:   1.04 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/BpHdCoCs.js                3.14 kB │ gzip:   1.29 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/B0b5cSv1.js                4.62 kB │ gzip:   1.79 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/kVb0BvLv.js                5.47 kB │ gzip:   2.25 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/DYO3Utho.js                5.57 kB │ gzip:   2.16 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/BepMiEE1.js                5.97 kB │ gzip:   1.79 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/BK7By3gy.js                6.82 kB │ gzip:   2.54 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/iFC89kKu.js                7.33 kB │ gzip:   2.78 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/BlgLqlAW.js                7.38 kB │ gzip:   2.91 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/B80KJxi6.js               18.57 kB │ gzip:   6.22 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/BQOVOFqx.js               64.83 kB │ gzip:  22.46 kB                                                                                                                                                                                                                                                                                       9:43:48 AM
ℹ .nuxt/dist/client/_nuxt/DdQLhhar.js            1,802.32 kB │ gzip: 645.66 kB                                                                                                                                                                                                                                                                                       9:43:48 AM

 WARN                                                                                                                                                                                                                                                                                                                                                                 9:43:48 AM
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.

ℹ ✓ built in 2.69s                                                                                                                                                                                                                                                                                                                                                   9:43:48 AM
✔ Client built in 2700ms                                                                                                                                                                                                                                                                                                                                             9:43:48 AM
ℹ Building server...                                                                                                                                                                                                                                                                                                                                                 9:43:48 AM
ℹ vite v5.4.2 building SSR bundle for production...                                                                                                                                                                                                                                                                                                                  9:43:48 AM

🌼   daisyUI 4.12.10
├─ ✔︎ 1 theme added		https://daisyui.com/docs/themes
╰─ ❤︎ Support daisyUI project:	https://opencollective.com/daisyui

ℹ ✓ 156 modules transformed.                                                                                                                                                                                                                                                                                                                                         9:43:49 AM
ℹ .nuxt/dist/server/_nuxt/entry-styles.D1dDi6Ct.mjs         0.15 kB                                                                                                                                                                                                                                                                                                  9:43:50 AM
ℹ .nuxt/dist/server/styles.mjs                              0.18 kB                                                                                                                                                                                                                                                                                                  9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/i18n.config-DFpEEJ-m.js           0.14 kB │ map:   0.25 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/imprint-BMTPl06g.js               1.69 kB │ map:   0.12 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/index-C2ZOk5Bz.js                 4.90 kB │ map:   5.45 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/asyncData-DZqpHzLd.js             5.70 kB │ map:  13.80 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/_slug_-YEQXaDNx.js                7.33 kB │ map:   6.89 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/post-DCziuADD.js                  8.74 kB │ map:   1.64 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/index-CHlx4C00.js                 8.95 kB │ map:   0.34 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/en-US-BjnJqz2B.js                 9.54 kB │ map:   0.21 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/entry-styles-2.mjs-DCojknPs.js    9.76 kB │ map:   0.11 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/nuxt-link-DlgbMrns.js            10.10 kB │ map:  21.33 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/es-ES-i3nj40x5.js                10.10 kB │ map:   0.21 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/de-DE-mFyRyKcu.js                10.11 kB │ map:   0.21 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/Footer-Dj7BXt52.js               11.00 kB │ map:  12.78 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/privacy-policy-Bjunibn-.js       17.75 kB │ map:   0.13 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/default-ByI_OZNR.js              21.48 kB │ map:  14.85 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/_nuxt/entry-styles-1.mjs-A6rTqk02.js   63.37 kB │ map:   0.11 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ .nuxt/dist/server/server.mjs                            300.96 kB │ map: 681.44 kB                                                                                                                                                                                                                                                                                 9:43:50 AM
ℹ ✓ built in 1.37s                                                                                                                                                                                                                                                                                                                                                   9:43:50 AM
✔ Server built in 1382ms                                                                                                                                                                                                                                                                                                                                             9:43:50 AM
ℹ Initializing prerenderer                                                                                                                                                                                                                                                                                                                                     nitro 9:43:50 AM

[9:43:51 AM]  WARN  Export "useNitroApp" of module "node_modules/nitropack/dist/runtime/app.mjs" was reexported through module "node_modules/nitropack/dist/runtime/index.mjs" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in "node_modules/@nuxtjs/sitemap/dist/runtime/nitro/routes/sitemap_index.xml.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

ℹ Prerendering 8 initial routes with crawler                                                                                                                                                                                                                                                                                                                   nitro 9:43:51 AM
  ├─ /robots.txt (12ms)                                                                                                                                                                                                                                                                                                                                         nitro 9:43:51 AM
  ├─ /__sitemap__/style.xsl (5ms)                                                                                                                                                                                                                                                                                                                               nitro 9:43:51 AM
  ├─ /200.html (66ms)                                                                                                                                                                                                                                                                                                                                           nitro 9:43:51 AM
  ├─ /404.html (66ms)                                                                                                                                                                                                                                                                                                                                           nitro 9:43:51 AM
  ├─ /imprint (138ms)                                                                                                                                                                                                                                                                                                                                           nitro 9:43:51 AM
  ├─ / (142ms)                                                                                                                                                                                                                                                                                                                                                  nitro 9:43:51 AM
  ├─ /privacy-policy (141ms)                                                                                                                                                                                                                                                                                                                                    nitro 9:43:51 AM
  ├─ /imprint/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (19ms) (skipped)                                                                                                                                                                                                                                                                               nitro 9:43:51 AM
  ├─ /posts (142ms)                                                                                                                                                                                                                                                                                                                                             nitro 9:43:51 AM
  ├─ /_payload.json?219037ad-9996-4bfb-b388-75710e43084f (16ms) (skipped)                                                                                                                                                                                                                                                                                       nitro 9:43:51 AM
  ├─ /privacy-policy/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (15ms) (skipped)                                                                                                                                                                                                                                                                        nitro 9:43:51 AM
  ├─ /posts/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (9ms) (skipped)                                                                                                                                                                                                                                                                                  nitro 9:43:51 AM
  ├─ /imprint/_payload.json (5ms)                                                                                                                                                                                                                                                                                                                               nitro 9:43:51 AM
  ├─ /_payload.json (15ms)                                                                                                                                                                                                                                                                                                                                      nitro 9:43:51 AM
  ├─ /privacy-policy/_payload.json (10ms)                                                                                                                                                                                                                                                                                                                       nitro 9:43:51 AM
  ├─ /posts/_payload.json (4ms)                                                                                                                                                                                                                                                                                                                                 nitro 9:43:51 AM
  ├─ /en/privacy-policy (96ms)                                                                                                                                                                                                                                                                                                                                  nitro 9:43:51 AM
  ├─ /en (100ms)                                                                                                                                                                                                                                                                                                                                                nitro 9:43:51 AM
  ├─ /es (103ms)                                                                                                                                                                                                                                                                                                                                                nitro 9:43:51 AM
  ├─ /en/imprint (107ms)                                                                                                                                                                                                                                                                                                                                        nitro 9:43:51 AM
  ├─ /es/privacy-policy (88ms)                                                                                                                                                                                                                                                                                                                                  nitro 9:43:51 AM
  ├─ /en/privacy-policy/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (6ms) (skipped)                                                                                                                                                                                                                                                                      nitro 9:43:51 AM
  ├─ /es/imprint (113ms)                                                                                                                                                                                                                                                                                                                                        nitro 9:43:51 AM
  ├─ /en/posts (107ms)                                                                                                                                                                                                                                                                                                                                          nitro 9:43:51 AM
  ├─ /en/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (8ms) (skipped)                                                                                                                                                                                                                                                                                     nitro 9:43:51 AM
  ├─ /es/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (6ms) (skipped)                                                                                                                                                                                                                                                                                     nitro 9:43:51 AM
  ├─ /en/imprint/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (5ms) (skipped)                                                                                                                                                                                                                                                                             nitro 9:43:51 AM
  ├─ /es/privacy-policy/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (4ms) (skipped)                                                                                                                                                                                                                                                                      nitro 9:43:51 AM
  ├─ /es/imprint/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (11ms) (skipped)                                                                                                                                                                                                                                                                            nitro 9:43:51 AM
  ├─ /en/posts/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (9ms) (skipped)                                                                                                                                                                                                                                                                               nitro 9:43:51 AM
  ├─ /es/posts (120ms)                                                                                                                                                                                                                                                                                                                                          nitro 9:43:51 AM
  ├─ /sitemap.xml (4ms)                                                                                                                                                                                                                                                                                                                                         nitro 9:43:51 AM
  ├─ /de-DE-sitemap.xml (5ms)                                                                                                                                                                                                                                                                                                                                   nitro 9:43:51 AM
  ├─ /en-US-sitemap.xml (5ms)                                                                                                                                                                                                                                                                                                                                   nitro 9:43:51 AM
  ├─ /en/privacy-policy/_payload.json (5ms)                                                                                                                                                                                                                                                                                                                     nitro 9:43:51 AM
  ├─ /es-ES-sitemap.xml (5ms)                                                                                                                                                                                                                                                                                                                                   nitro 9:43:51 AM
  ├─ /index-sitemap.xml (5ms)                                                                                                                                                                                                                                                                                                                                   nitro 9:43:51 AM
  ├─ /es/posts/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (7ms) (skipped)                                                                                                                                                                                                                                                                               nitro 9:43:51 AM
  ├─ /es/_payload.json (5ms)                                                                                                                                                                                                                                                                                                                                    nitro 9:43:51 AM
  ├─ /en/_payload.json (7ms)                                                                                                                                                                                                                                                                                                                                    nitro 9:43:51 AM
  ├─ /en/imprint/_payload.json (5ms)                                                                                                                                                                                                                                                                                                                            nitro 9:43:51 AM
  ├─ /es/privacy-policy/_payload.json (3ms)                                                                                                                                                                                                                                                                                                                     nitro 9:43:51 AM
  ├─ /posts/schoen-dass-du-hier-bist (115ms)                                                                                                                                                                                                                                                                                                                    nitro 9:43:51 AM
  ├─ /en/posts/_payload.json (2ms)                                                                                                                                                                                                                                                                                                                              nitro 9:43:51 AM
  ├─ /es/imprint/_payload.json (10ms)                                                                                                                                                                                                                                                                                                                           nitro 9:43:51 AM
  ├─ /es/posts/_payload.json (3ms)                                                                                                                                                                                                                                                                                                                              nitro 9:43:51 AM
  ├─ /posts/schoen-dass-du-hier-bist/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (11ms) (skipped)                                                                                                                                                                                                                                                        nitro 9:43:51 AM
  ├─ /en/posts/nice-to-meet-you (24ms)                                                                                                                                                                                                                                                                                                                          nitro 9:43:51 AM
  ├─ /en/posts/nice-to-meet-you/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (17ms) (skipped)                                                                                                                                                                                                                                                             nitro 9:43:51 AM
  ├─ /es/posts/bienvenido (12ms)                                                                                                                                                                                                                                                                                                                                nitro 9:43:51 AM
  ├─ /es/posts/bienvenido/_payload.json?219037ad-9996-4bfb-b388-75710e43084f (11ms) (skipped)                                                                                                                                                                                                                                                                   nitro 9:43:51 AM
  ├─ /posts/schoen-dass-du-hier-bist/_payload.json (3ms)                                                                                                                                                                                                                                                                                                        nitro 9:43:51 AM
  ├─ /en/posts/schoen-dass-du-hier-bist (11ms)                                                                                                                                                                                                                                                                                                                  nitro 9:43:51 AM
  ├─ /es/posts/schoen-dass-du-hier-bist (10ms)                                                                                                                                                                                                                                                                                                                  nitro 9:43:51 AM
  ├─ /en/posts/nice-to-meet-you/_payload.json (4ms)                                                                                                                                                                                                                                                                                                             nitro 9:43:51 AM
  ├─ /es/posts/nice-to-meet-you (16ms)                                                                                                                                                                                                                                                                                                                          nitro 9:43:51 AM
  ├─ /posts/nice-to-meet-you (17ms)                                                                                                                                                                                                                                                                                                                             nitro 9:43:51 AM
  ├─ /en/posts/bienvenido (10ms)                                                                                                                                                                                                                                                                                                                                nitro 9:43:51 AM
  ├─ /posts/bienvenido (8ms)                                                                                                                                                                                                                                                                                                                                    nitro 9:43:51 AM
  ├─ /es/posts/bienvenido/_payload.json (3ms)                                                                                                                                                                                                                                                                                                                   nitro 9:43:51 AM

[9:43:52 AM]  WARN  Export "useNitroApp" of module "node_modules/nitropack/dist/runtime/app.mjs" was reexported through module "node_modules/nitropack/dist/runtime/index.mjs" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in "node_modules/@nuxtjs/sitemap/dist/runtime/nitro/routes/sitemap_index.xml.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

  ├─ /sitemap_index.xml (3ms)                                                                                                                                                                                                                                                                                                                                   nitro 9:43:52 AM
  ├─ /__sitemap__/en-US.xml (6ms)                                                                                                                                                                                                                                                                                                                               nitro 9:43:53 AM
  ├─ /__sitemap__/de-DE.xml (5ms)                                                                                                                                                                                                                                                                                                                               nitro 9:43:53 AM
  ├─ /__sitemap__/es-ES.xml (6ms)                                                                                                                                                                                                                                                                                                                               nitro 9:43:53 AM
ℹ Prerendered 49 routes in 2.819 seconds                                                                                                                                                                                                                                                                                                                       nitro 9:43:53 AM
✔ Generated public .output/public                                                                                                                                                                                                                                                                                                                              nitro 9:43:53 AM
✔ You can preview this build using npx serve .output/public                                                                                                                                                                                                                                                                                                    nitro 9:43:53 AM
✔ You can now deploy .output/public to any static hosting!                                                                                                                                                                                                                                                                                                           9:43:53 AM
```</div>
@mickaelchanrion
Copy link

Can you try to add this to your nuxt.config.ts ?

nitro: {
  prerender: {
    concurrency: 1,
 },
},

@WaldemarEnns
Copy link
Author

Can you try to add this to your nuxt.config.ts ?

nitro: {
prerender: {
concurrency: 1,
},
},

Unfortunately, that didn't help. The output is the same:


> generate
> nuxt generate

Nuxt 3.13.0 with Nitro 2.9.7                                                                                                                                                                                                                                     6:42:05 AM
ℹ Using Nitro server preset: static                                                                                                                                                                                                                             6:42:05 AM

 WARN  Locale en-US uses deprecated iso property, this will be replaced with language in v9                                                                                                                                                                      6:42:07 AM


 WARN  Locale de-DE uses deprecated iso property, this will be replaced with language in v9                                                                                                                                                                      6:42:07 AM


 WARN  Locale es-ES uses deprecated iso property, this will be replaced with language in v9                                                                                                                                                                      6:42:07 AM

ℹ Strapi Admin URL: http://localhost:1337/admin                                                                                                                                                                                                                 6:42:07 AM
ℹ Building client...                                                                                                                                                                                                                                            6:42:09 AM
ℹ vite v5.4.2 building for production...                                                                                                                                                                                                                        6:42:09 AM
transforming (59) node_modules/@nuxtjs/strapi/dist/runtime/composables/useStrapiUser.mjs
🌼   daisyUI 4.12.10
├─ ✔︎ 1 theme added		https://daisyui.com/docs/themes
╰─ ❤︎ Support daisyUI project:	https://opencollective.com/daisyui

ℹ ✓ 285 modules transformed.                                                                                                                                                                                                                                    6:42:12 AM
ℹ .nuxt/dist/client/manifest.json                    4.05 kB │ gzip:   0.73 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/me-nice.DvpNxJFD.webp     50.75 kB                                                                                                                                                                                                    6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/DG4bOlEm.js                0.05 kB │ gzip:   0.07 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/BAuNtLH8.js                0.39 kB │ gzip:   0.27 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/DMc_d7rI.js                1.11 kB │ gzip:   0.70 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/gVPKDidy.js                1.19 kB │ gzip:   0.62 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/DQzosCdq.js                1.94 kB │ gzip:   1.04 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/BpHdCoCs.js                3.14 kB │ gzip:   1.29 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/B0b5cSv1.js                4.62 kB │ gzip:   1.79 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/kVb0BvLv.js                5.47 kB │ gzip:   2.25 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/DYO3Utho.js                5.57 kB │ gzip:   2.16 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/BepMiEE1.js                5.97 kB │ gzip:   1.79 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/BK7By3gy.js                6.82 kB │ gzip:   2.54 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/iFC89kKu.js                7.33 kB │ gzip:   2.78 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/BlgLqlAW.js                7.38 kB │ gzip:   2.91 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/B80KJxi6.js               18.57 kB │ gzip:   6.22 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/BQOVOFqx.js               64.83 kB │ gzip:  22.46 kB                                                                                                                                                                                  6:42:13 AM
ℹ .nuxt/dist/client/_nuxt/DdQLhhar.js            1,802.32 kB │ gzip: 645.66 kB                                                                                                                                                                                  6:42:13 AM

 WARN                                                                                                                                                                                                                                                            6:42:13 AM
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.

ℹ ✓ built in 3.74s                                                                                                                                                                                                                                              6:42:13 AM
✔ Client built in 3751ms                                                                                                                                                                                                                                        6:42:13 AM
ℹ Building server...                                                                                                                                                                                                                                            6:42:13 AM
ℹ vite v5.4.2 building SSR bundle for production...                                                                                                                                                                                                             6:42:13 AM

🌼   daisyUI 4.12.10
├─ ✔︎ 1 theme added		https://daisyui.com/docs/themes
╰─ ❤︎ Support daisyUI project:	https://opencollective.com/daisyui

ℹ ✓ 156 modules transformed.                                                                                                                                                                                                                                    6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/entry-styles.D1dDi6Ct.mjs         0.15 kB                                                                                                                                                                                             6:42:15 AM
ℹ .nuxt/dist/server/styles.mjs                              0.18 kB                                                                                                                                                                                             6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/i18n.config-DFpEEJ-m.js           0.14 kB │ map:   0.25 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/imprint-BMTPl06g.js               1.69 kB │ map:   0.12 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/index-C2ZOk5Bz.js                 4.90 kB │ map:   5.45 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/asyncData-DZqpHzLd.js             5.70 kB │ map:  13.80 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/_slug_-YEQXaDNx.js                7.33 kB │ map:   6.89 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/post-DCziuADD.js                  8.74 kB │ map:   1.64 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/index-CHlx4C00.js                 8.95 kB │ map:   0.34 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/en-US-BjnJqz2B.js                 9.54 kB │ map:   0.21 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/entry-styles-2.mjs-DCojknPs.js    9.76 kB │ map:   0.11 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/nuxt-link-DlgbMrns.js            10.10 kB │ map:  21.33 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/es-ES-i3nj40x5.js                10.10 kB │ map:   0.21 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/de-DE-mFyRyKcu.js                10.11 kB │ map:   0.21 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/Footer-Dj7BXt52.js               11.00 kB │ map:  12.78 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/privacy-policy-Bjunibn-.js       17.75 kB │ map:   0.13 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/default-ByI_OZNR.js              21.48 kB │ map:  14.85 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/_nuxt/entry-styles-1.mjs-A6rTqk02.js   63.37 kB │ map:   0.11 kB                                                                                                                                                                            6:42:15 AM
ℹ .nuxt/dist/server/server.mjs                            300.96 kB │ map: 681.44 kB                                                                                                                                                                            6:42:15 AM
ℹ ✓ built in 2.10s                                                                                                                                                                                                                                              6:42:15 AM
✔ Server built in 2105ms                                                                                                                                                                                                                                        6:42:15 AM
ℹ Initializing prerenderer                                                                                                                                                                                                                                nitro 6:42:15 AM

[6:42:17 AM]  WARN  Export "useNitroApp" of module "node_modules/nitropack/dist/runtime/app.mjs" was reexported through module "node_modules/nitropack/dist/runtime/index.mjs" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in "node_modules/@nuxtjs/sitemap/dist/runtime/nitro/routes/sitemap_index.xml.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

ℹ Prerendering 8 initial routes with crawler                                                                                                                                                                                                              nitro 6:42:17 AM
  ├─ /robots.txt (8ms)                                                                                                                                                                                                                                     nitro 6:42:17 AM
  ├─ / (168ms)                                                                                                                                                                                                                                             nitro 6:42:17 AM
  ├─ /imprint (20ms)                                                                                                                                                                                                                                       nitro 6:42:17 AM
  ├─ /privacy-policy (23ms)                                                                                                                                                                                                                                nitro 6:42:17 AM
  ├─ /posts (26ms)                                                                                                                                                                                                                                         nitro 6:42:17 AM
  ├─ /__sitemap__/style.xsl (5ms)                                                                                                                                                                                                                          nitro 6:42:17 AM
  ├─ /200.html (6ms)                                                                                                                                                                                                                                       nitro 6:42:17 AM
  ├─ /404.html (6ms)                                                                                                                                                                                                                                       nitro 6:42:17 AM
  ├─ /_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (5ms) (skipped)                                                                                                                                                                                   nitro 6:42:17 AM
  ├─ /en (10ms)                                                                                                                                                                                                                                            nitro 6:42:17 AM
  ├─ /es (17ms)                                                                                                                                                                                                                                            nitro 6:42:17 AM
  ├─ /en/imprint (14ms)                                                                                                                                                                                                                                    nitro 6:42:17 AM
  ├─ /es/imprint (16ms)                                                                                                                                                                                                                                    nitro 6:42:18 AM
  ├─ /en/posts (26ms)                                                                                                                                                                                                                                      nitro 6:42:18 AM
  ├─ /es/posts (28ms)                                                                                                                                                                                                                                      nitro 6:42:18 AM
  ├─ /en/privacy-policy (17ms)                                                                                                                                                                                                                             nitro 6:42:18 AM
  ├─ /_payload.json (2ms)                                                                                                                                                                                                                                  nitro 6:42:18 AM
  ├─ /imprint/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (3ms) (skipped)                                                                                                                                                                           nitro 6:42:18 AM
  ├─ /es/privacy-policy (11ms)                                                                                                                                                                                                                             nitro 6:42:18 AM
  ├─ /sitemap.xml (1ms)                                                                                                                                                                                                                                    nitro 6:42:18 AM
  ├─ /index-sitemap.xml (1ms)                                                                                                                                                                                                                              nitro 6:42:18 AM
  ├─ /en-US-sitemap.xml (1ms)                                                                                                                                                                                                                              nitro 6:42:18 AM
  ├─ /de-DE-sitemap.xml (1ms)                                                                                                                                                                                                                              nitro 6:42:18 AM
  ├─ /es-ES-sitemap.xml (1ms)                                                                                                                                                                                                                              nitro 6:42:18 AM
  ├─ /imprint/_payload.json (4ms)                                                                                                                                                                                                                          nitro 6:42:18 AM
  ├─ /privacy-policy/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (3ms) (skipped)                                                                                                                                                                    nitro 6:42:18 AM
  ├─ /privacy-policy/_payload.json (3ms)                                                                                                                                                                                                                   nitro 6:42:18 AM
  ├─ /posts/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (3ms) (skipped)                                                                                                                                                                             nitro 6:42:18 AM
  ├─ /posts/schoen-dass-du-hier-bist (36ms)                                                                                                                                                                                                                nitro 6:42:18 AM
  ├─ /posts/_payload.json (3ms)                                                                                                                                                                                                                            nitro 6:42:18 AM
  ├─ /en/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (9ms) (skipped)                                                                                                                                                                                nitro 6:42:18 AM
  ├─ /en/_payload.json (4ms)                                                                                                                                                                                                                               nitro 6:42:18 AM
  ├─ /es/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (3ms) (skipped)                                                                                                                                                                                nitro 6:42:18 AM
  ├─ /es/_payload.json (3ms)                                                                                                                                                                                                                               nitro 6:42:18 AM
  ├─ /en/imprint/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (7ms) (skipped)                                                                                                                                                                        nitro 6:42:18 AM
  ├─ /en/imprint/_payload.json (3ms)                                                                                                                                                                                                                       nitro 6:42:18 AM
  ├─ /es/imprint/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (3ms) (skipped)                                                                                                                                                                        nitro 6:42:18 AM
  ├─ /es/imprint/_payload.json (1ms)                                                                                                                                                                                                                       nitro 6:42:18 AM
  ├─ /en/posts/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (3ms) (skipped)                                                                                                                                                                          nitro 6:42:18 AM
  ├─ /en/posts/nice-to-meet-you (27ms)                                                                                                                                                                                                                     nitro 6:42:18 AM
  ├─ /en/posts/_payload.json (6ms)                                                                                                                                                                                                                         nitro 6:42:18 AM
  ├─ /es/posts/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (2ms) (skipped)                                                                                                                                                                          nitro 6:42:18 AM
  ├─ /es/posts/bienvenido (45ms)                                                                                                                                                                                                                           nitro 6:42:18 AM
  ├─ /es/posts/_payload.json (3ms)                                                                                                                                                                                                                         nitro 6:42:18 AM
  ├─ /en/privacy-policy/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (4ms) (skipped)                                                                                                                                                                 nitro 6:42:18 AM
  ├─ /en/privacy-policy/_payload.json (4ms)                                                                                                                                                                                                                nitro 6:42:18 AM
  ├─ /es/privacy-policy/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (3ms) (skipped)                                                                                                                                                                 nitro 6:42:18 AM
  ├─ /es/privacy-policy/_payload.json (3ms)                                                                                                                                                                                                                nitro 6:42:18 AM
  ├─ /posts/schoen-dass-du-hier-bist/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (11ms) (skipped)                                                                                                                                                   nitro 6:42:18 AM
  ├─ /en/posts/schoen-dass-du-hier-bist (23ms)                                                                                                                                                                                                             nitro 6:42:18 AM
  ├─ /es/posts/schoen-dass-du-hier-bist (16ms)                                                                                                                                                                                                             nitro 6:42:18 AM
  ├─ /posts/schoen-dass-du-hier-bist/_payload.json (3ms)                                                                                                                                                                                                   nitro 6:42:18 AM
  ├─ /en/posts/nice-to-meet-you/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (3ms) (skipped)                                                                                                                                                         nitro 6:42:18 AM
  ├─ /posts/nice-to-meet-you (16ms)                                                                                                                                                                                                                        nitro 6:42:18 AM
  ├─ /es/posts/nice-to-meet-you (17ms)                                                                                                                                                                                                                     nitro 6:42:18 AM
  ├─ /en/posts/nice-to-meet-you/_payload.json (3ms)                                                                                                                                                                                                        nitro 6:42:18 AM
  ├─ /es/posts/bienvenido/_payload.json?9b6499d0-efef-46be-b50c-55bebde0a98e (2ms) (skipped)                                                                                                                                                               nitro 6:42:18 AM
  ├─ /en/posts/bienvenido (10ms)                                                                                                                                                                                                                           nitro 6:42:18 AM
  ├─ /posts/bienvenido (22ms)                                                                                                                                                                                                                              nitro 6:42:18 AM
  ├─ /es/posts/bienvenido/_payload.json (3ms)                                                                                                                                                                                                              nitro 6:42:18 AM

[6:42:20 AM]  WARN  Export "useNitroApp" of module "node_modules/nitropack/dist/runtime/app.mjs" was reexported through module "node_modules/nitropack/dist/runtime/index.mjs" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in "node_modules/@nuxtjs/sitemap/dist/runtime/nitro/routes/sitemap_index.xml.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

  ├─ /sitemap_index.xml (8ms)                                                                                                                                                                                                                              nitro 6:42:20 AM
  ├─ /__sitemap__/en-US.xml (12ms)                                                                                                                                                                                                                         nitro 6:42:20 AM
  ├─ /__sitemap__/de-DE.xml (9ms)                                                                                                                                                                                                                          nitro 6:42:20 AM
  ├─ /__sitemap__/es-ES.xml (12ms)                                                                                                                                                                                                                         nitro 6:42:20 AM
ℹ Prerendered 49 routes in 5.051 seconds                                                                                                                                                                                                                  nitro 6:42:20 AM
✔ Generated public .output/public                                                                                                                                                                                                                         nitro 6:42:20 AM
✔ You can preview this build using npx serve .output/public                                                                                                                                                                                               nitro 6:42:20 AM
✔ You can now deploy .output/public to any static hosting!                                                                                                                                                                                                      6:42:20 AM

Since my repository is public anyways, fell free to check it out:

https://github.com/WaldemarEnns/portfolio

It contains the current state and you can use it as a reproduction right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants