george.x.r
george.x.r
NNuxt
Created by george.x.r on 9/13/2024 in #❓・help
Nuxt Image does not optimize my images
yeah I thought the nuxt-image plugin would handle that
9 replies
NNuxt
Created by george.x.r on 9/13/2024 in #❓・help
Nuxt Image does not optimize my images
so there is no way to optimize images retrieved from Strapi? they must be already optimized when uploaded there?
9 replies
NNuxt
Created by george.x.r on 9/13/2024 in #❓・help
Nuxt Image does not optimize my images
@danielroe thank you! does that mean nuxt image only optimizes images that are located in the public folder?
9 replies
NNuxt
Created by george.x.r on 9/6/2024 in #❓・help
Static website with prerendered content
I believe it should have more examples or at least specify which one is better to use for static generated websites.
11 replies
NNuxt
Created by george.x.r on 9/10/2024 in #❓・help
Language Switcher (i18n) does not update components
because when I add the TheNavigation component inside a page it updates automatically
8 replies
NNuxt
Created by george.x.r on 9/10/2024 in #❓・help
Language Switcher (i18n) does not update components
it is has something to do with the layout
8 replies
NNuxt
Created by george.x.r on 9/10/2024 in #❓・help
Language Switcher (i18n) does not update components
tried that. still the same issue
8 replies
NNuxt
Created by george.x.r on 9/10/2024 in #❓・help
Language Switcher (i18n) does not update components
useRetrieveDataFind is a composable that uses useAsyncData to retrieve data from an API. it is the same composable that is being used to retrieve the data in the main pages as well and they get updated on language change
8 replies
NNuxt
Created by george.x.r on 9/10/2024 in #❓・help
Language Switcher (i18n) does not update components
8 replies
NNuxt
Created by george.x.r on 9/6/2024 in #❓・help
Static website with prerendered content
I updated the code and chaged the #fetch to useAsyncData and now it seems it works ok..im still trying to understand the differences between all of them 😅
11 replies
NNuxt
Created by george.x.r on 9/6/2024 in #❓・help
Static website with prerendered content
Hi @Jacek I don't use Pinia in my project. I have a composable that fetches my data each time I call it.
const useGetData = async () => {
try {
const data = await $fetch(www.example.com, {
method: "GET",
headers: {
Authorization: `Bearer ${token}`,
},
query: { locale: iso, populate: "*" },
})
);


return { data };
} catch (e) {
console.error("Error fetching data:", e);
}
};
const useGetData = async () => {
try {
const data = await $fetch(www.example.com, {
method: "GET",
headers: {
Authorization: `Bearer ${token}`,
},
query: { locale: iso, populate: "*" },
})
);


return { data };
} catch (e) {
console.error("Error fetching data:", e);
}
};
Do you think that the issue is because I am using fetch?
11 replies
NNuxt
Created by george.x.r on 8/1/2024 in #❓・help
ssr calls to api do not work
the issue was the cms was running under windows and the project in wsl
4 replies
NNuxt
Created by george.x.r on 8/1/2024 in #❓・help
ssr calls to api do not work
ahh sorry that was a typo. i found what the issue was
4 replies