Richard E
Richard E
Explore posts from servers
NNuxt
Created by EliteEngineer on 3/22/2024 in #❓・help
Help finding good guides
Also you could take a look at sidebase/nuxt-auth which uses authjs also https://github.com/sidebase/nuxt-auth
4 replies
NNuxt
Created by EliteEngineer on 3/22/2024 in #❓・help
Help finding good guides
Although I use supabase for auth right now, I came across this project while doing some research and it uses Auth.js. Also using some other tech I'm currently using such as Nuxt, Turborepo, drizzle and TRPC which was a nice find. https://github.com/romhml/k2
4 replies
NNuxt
Created by Richard E on 1/15/2024 in #❓・help
Getting 404 after app.config.ts change
So it looks like this call in the top of the page fails while it's rebuilding and the error is from the server. The check and throw after doesn't even get called as the messages are different.
const { data: page } = await useAsyncData('index', () => queryContent('/').findOne())
if (!page.value) {
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
}
const { data: page } = await useAsyncData('index', () => queryContent('/').findOne())
if (!page.value) {
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
}
4 replies