less
less
NNuxt
Created by formigueiro on 10/17/2024 in #❓・help
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
routeRules: {
"/": {
appMiddleware: ["auth"],
},
},
routeRules: {
"/": {
appMiddleware: ["auth"],
},
},
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
NNuxt
Created by matthew on 10/15/2024 in #❓・help
nuxt dev doesn't load .env
have you configure the .env in nuxt.config? or maybe you can run using nuxi dev --dotenv [dotenv file]
3 replies
NNuxt
Created by Yazılım Panteri on 10/8/2024 in #❓・help
Need help for component library with vue 3
Wow, Great works on this ui projects! Should be posted on the showcase, so everybody will noticed this!
4 replies
NNuxt
Created by nhasyahyuga on 10/9/2024 in #❓・help
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-fetching
4 replies
NNuxt
Created by eva n. on 9/19/2024 in #❓・help
I can't get api
try using useLazyFetch instead of useFetch to refresh the data
2 replies
NNuxt
Created by mdthansil on 8/30/2024 in #❓・help
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
NNuxt
Created by Inès on 8/28/2024 in #❓・help
NuxtLink and SSR pages
do you have any reproductions ?
6 replies
NNuxt
Created by Inès on 8/28/2024 in #❓・help
NuxtLink and SSR pages
maybe you can write it with string literals if you want to use the variables. i assume that the networkName is a variable, you can write it like
:to="`/networks/${networkName}`"
:to="`/networks/${networkName}`"
6 replies
NNuxt
Created by sniperfull. on 8/1/2024 in #❓・help
shadcn-vue compontents not getting added
have you declare the component directory in the nuxt config?
2 replies
NNuxt
Created by less on 5/3/2023 in #❓・help
useFetch is not defined in server/api
ah i seee, thankyou sir
7 replies