Cordobes
Cordobes
NNuxt
Created by Cordobes on 3/29/2025 in #❓・help
in development comments are fetching correctly, on production theres no fetch
const fetchComments = async () => { try { const { data } = await useAsyncData( 'comments', () => $fetch('/api/v1/comments', { method: 'GET', params: { sitekey, post_id: postId, hostname: referer } }) ) console.log(data) const commentsArray = Array.isArray(data) ? data : (data as { comments: Comment[] })?.comments || [] comments.value = commentsArray.sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime()) } catch (error) { console.error('Error fetching comments:', error) comments.value = [] } } fetchComments()
10 replies
NNuxt
Created by Cordobes on 3/29/2025 in #❓・help
supabase signup pass custom data
async function onSubmit(payload: FormSubmitEvent<Schema>) { try { const { error } = await supabase.auth.signUp({ email: payload.data.email, password: payload.data.password }) if (error) { toast.add({ title: 'Error', description: error.message, color: 'error' }) } else { toast.add({ title: 'Success', description: 'Logged in successfully', color: 'success' }) } } catch (error: any) { toast.add({ title: 'Error', description: error.message, color: 'error' }) } } how i can send username to supabase sign up auth
21 replies
NNuxt
Created by Cordobes on 3/28/2025 in #❓・help
useFetch works perfectly on dev enviroment, on productions fails on pre-hydration
No description
27 replies
NNuxt
Created by Cordobes on 3/27/2025 in #❓・help
Chat bot kapa.ai
@kapa.ai how i can set background tcolor ransparent in a page
38 replies
NNuxt
Created by Cordobes on 3/24/2025 in #❓・help
Return a vue page in server route
export default defineEventHandler(async (event) => { const user = await isAuthenticated(event) if (!user) { throw createError({ statusCode: 401, message: 'Unauthorized' }) } //return administrator.vue })
54 replies
NNuxt
Created by Cordobes on 3/24/2025 in #❓・help
Auth session missing!
export const isAuthenticated = async (event: any) => { const { user, error } = await serverSupabaseUser(event); if (error) { console.log("Authentication error:", error); return false; } if (!user) { return false; } return user; }
23 replies
NNuxt
Created by Cordobes on 3/21/2025 in #❓・help
build error
[ nuxi 03:54:50] ERROR Nuxt Build Error: [vite:vue] Could not load C:/Users/facun/OneDrive/Im\xE1genes/dialoge.pro/nodemodules/.pnpm/@[email protected]@babel+p_feda10ab9a76a4fe03faa6b620efb943/node_modules/@nuxt/ui-pro/dist/runtime/components/prose/Pre.vue?vue&type=style&index=0&lang.css?inline&used: ENOENT: no such file or directory, open 'C:\Users\facun\OneDrive\Im\xE1genes\dialoge.pro\nodemodules.pnpm@[email protected]@babel+p_feda10ab9a76a4fe03faa6b620efb943\node_modules@nuxt\ui-pro\dist\runtime\components\prose\Pre.vue'
7 replies
NNuxt
Created by Cordobes on 3/20/2025 in #❓・help
postcss error (tailwind)
Pre-transform error: [postcss] postcss-import: C:\Users\facun\OneDrive\Documentos\dialoge\node_modules\tailwindcss\lib\index.js:1:1: Unknown word "use strict" Plugin: vite:css File: C:/Users/facun/OneDrive/Documentos/dialoge/node_modules/tailwindcss/lib/index.js:1:0 1 | "use strict"; | ^ 2 | module.exports = require("./plugin"); 3 | (x2) ℹ Vite server warmed up in 20874ms
19 replies
NNuxt
Created by Cordobes on 2/25/2025 in #❓・help
Components props?
how i can pass values to a component @kapa.ai
4 replies