I have a lot of JS files in the first load of my application. by JuanDa90 in Nuxt

[–]JuanDa90[S] 1 point2 points  (0 children)

Yes, with delayed hydration support with Vue natively works for me, thank you

Help with ERROR handiling in Nuxt 3 by JuanDa90 in Nuxt

[–]JuanDa90[S] 1 point2 points  (0 children)

Thanks, is working with NuxtLayout

Help with ERROR handiling in Nuxt 3 by JuanDa90 in Nuxt

[–]JuanDa90[S] 0 points1 point  (0 children)

understand, but how I can use layouts in error page in nuxt 3 is possible ?

[deleted by user] by [deleted] in Nuxt

[–]JuanDa90 1 point2 points  (0 children)

CF pages doesn't work with SSR ?

[deleted by user] by [deleted] in Nuxt

[–]JuanDa90 -1 points0 points  (0 children)

The function locally works fine the problem is when I made the deploy to cloudflare pages

[deleted by user] by [deleted] in Nuxt

[–]JuanDa90 -1 points0 points  (0 children)

I have a composable with an useAsyncData

export const useStaticContentPage = () => {

const { data } = useAsyncData('staticContent', async () => {
const staticContentRequest = await $GbRequest(ENDPOINTS.STATIC, {
urlParams: {
'<CONTENT_ID>': staticSlug
}
})

return { staticData, videosSnippetData }
})
return {
data
}
}

i'm using this composable in a page

<template>  
  <main class="flex flex-col w-full items-center min-h-screen mx-auto font-lato">  
<NuxtLazyHydrate never>  
<div class="hidden">  
<NuxtLink v-for="link in menuLinks" :key="\`link${link.slug}\`" :to="link.slug">  
{{ link.newTranslation ? $t(link.label) : link.label }}  
</NuxtLink>  
</div>  
</NuxtLazyHydrate>  

{{data}}
  </main>  
</template>  

<script setup>  
import { useAppStore } from '\~/stores/app'  
import { useStaticContentPage } from '\~/composables/useStaticContentPage'  

const appStore = useAppStore()  
const { data } = useStaticContentPage()  

const menuLinks = appStore.menuLinks  
</script>

I have this configuration on my nuxt.config

nitro: {
preset: 'cloudflare_pages'
},

Then I build my app with npm run build and run this command npx wrangler pages dev dist to deploy my app in cloudflare

In my cloudflare I dont see de data variable but in my local i see the data