less
I created middleware to use in some pages, but im checking and taking time to run
Hi, you can just add on the routeRules to specify the page that you want to apply the middleware like this
and just abort the navigation in your middleware, or you can just add 1 by 1 on the pageMeta in every page you want to apply
3 replies
Nuxt 3 axios issue
Hi, as far as i know, we don't use axios anymore in Nuxt 3.
You can try to use the
ohmyfetch $fetch
or build in composables such as useFetch
and useAsyncData
.
here's the docs for that : https://nuxt.com/docs/getting-started/data-fetching4 replies
Is there any easy way to generate PDF from html in Nuxt.js?
Maybe you can use PDFjs, or according to sidebase/nuxt-pdf, you can use their composables to generate the PDF from HTML :
https://github.com/sidebase/nuxt-pdf/tree/main/src/runtime/composables
7 replies