taunoha
NNuxt
β’Created by taunoha on 10/9/2024 in #βγ»help
Nuxt generate pre-render nitro 500 error
I need a little help here π¦ I'm getting a Bitbucket pipeline 500 nitro error when pre-rendering pages.
I'm unable to figure out what is causing the error :/
1 replies
NNuxt
β’Created by taunoha on 12/19/2022 in #βγ»help
What could go wrong using top-level await useFetch in a page?
=> /pages/index.vue
<script setup>
const { data }Β = await useFetch('/api/v1/posts');
</script>
=> /server/api/v1/posts/index.ts
export default defineEventHandler(async () => {
const results = await prisma.posts.findMany();
return results;
});
On first page visit I will have null posts. Why is useFetch not blocking page rendering until server has been responded? :/
9 replies