taunoha
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 :/
[log] [nitro] prerender:generate: 0.043ms
[log] [nitro] prerender:route: 0.017ms
[log] [nitro] β”œβ”€ /404.html (178ms)
β”‚ └── Error: [404] Not Found
[log] [nitro] prerender:generate: 0.031ms
[log] [nitro] prerender:route: 0.013ms
[log] [nitro] β”œβ”€ / (280ms)
β”‚ └── Error: [404] Not Found
[log] [nitro] prerender:generate: 0.019ms
[log] [nitro] prerender:route: 0.008ms
[log] [nitro] β”œβ”€ /200.html (241ms)
β”‚ └── Error: [404] Not Found
[log] [nitro-runtime] close: 0.012ms
[log] [nitro] prerender:done: 0.009ms
[log] [nitro]
Errors prerendering:
[log] [nitro] β”œβ”€ /404.html (178ms)
β”‚ └── Error: [404] Not Found
[log] [nitro] β”œβ”€ / (280ms)
β”‚ └── Error: [404] Not Found
[log] [nitro] β”œβ”€ /200.html (241ms)
β”‚ └── Error: [404] Not Found
[log] [nitro]
[error] Exiting due to prerender errors.
[log] [nitro] prerender:generate: 0.043ms
[log] [nitro] prerender:route: 0.017ms
[log] [nitro] β”œβ”€ /404.html (178ms)
β”‚ └── Error: [404] Not Found
[log] [nitro] prerender:generate: 0.031ms
[log] [nitro] prerender:route: 0.013ms
[log] [nitro] β”œβ”€ / (280ms)
β”‚ └── Error: [404] Not Found
[log] [nitro] prerender:generate: 0.019ms
[log] [nitro] prerender:route: 0.008ms
[log] [nitro] β”œβ”€ /200.html (241ms)
β”‚ └── Error: [404] Not Found
[log] [nitro-runtime] close: 0.012ms
[log] [nitro] prerender:done: 0.009ms
[log] [nitro]
Errors prerendering:
[log] [nitro] β”œβ”€ /404.html (178ms)
β”‚ └── Error: [404] Not Found
[log] [nitro] β”œβ”€ / (280ms)
β”‚ └── Error: [404] Not Found
[log] [nitro] β”œβ”€ /200.html (241ms)
β”‚ └── Error: [404] Not Found
[log] [nitro]
[error] Exiting due to prerender errors.
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