kingtimm
kingtimm
Explore posts from servers
DTDrizzle Team
Created by iska on 8/19/2024 in #help
syntax atomic transaction d1 not working
Did you have any breakthroughs on a workaround for this?
3 replies
NNuxt
Created by Cody Bontecou on 5/9/2024 in #❓・help
typedPages not providing types
Have you done a ‘nuxi prepare’ to generate the types? Sometimes that step helps jumpstart things for me
3 replies
NNuxt
Created by thesivak on 4/23/2024 in #❓・help
nuxt 3 testing examples
5 replies
NNuxt
Created by MTG on 4/10/2024 in #❓・help
Infinite building time when deploying on Vercel
New connection per request with serverless products like vercel functions.
14 replies
NNuxt
Created by MTG on 4/10/2024 in #❓・help
Infinite building time when deploying on Vercel
Is this trying to run on an edge function in vercel? Long running connections might not be a solution for serverless.
14 replies
NNuxt
Created by MTG on 4/10/2024 in #❓・help
Infinite building time when deploying on Vercel
Have you tried nuxi build with the vercel preset locally to see if it does something similar? What’s your vercel build settings.
14 replies
NNuxt
Created by Kepmon on 3/26/2024 in #❓・help
How to check on a client side that a user was redirected from middleware?
I’m not the most experienced user and there could be other options. If we need your “/“ route to conditionally show a popup if a user was sent there by middleware, navigateTo can indicate that through query/params. Another option could be to write to a useState(“redirectReason”). You can set a ssr-friendly value in useState, and then in setup function of “/“ route you can check state to trigger your popup notification.
7 replies
NNuxt
Created by Kepmon on 3/26/2024 in #❓・help
How to check on a client side that a user was redirected from middleware?
Could you have the middleware insert a query param? Redirect to “/?error=true” (or some other made up name). Then you can use useRoute but look for the query param instead of the redirectFrom
7 replies
NNuxt
Created by Phillip on 3/27/2024 in #❓・help
How to access the event in a server/utils function?
I haven’t tried this but saw it mentioned on another thread. https://nitro.unjs.io/guide/utils#async-context-experimental
3 replies
NNuxt
Created by waikit on 3/24/2024 in #❓・help
<img src> is working but when i bind it :src it's not working
I think it should be :src=“props.imageSrc”
14 replies
NNuxt
Created by ʀᴇɴᴅᴇʀɴᴇᴛ.𝔃𝓲𝓹 on 3/26/2024 in #❓・help
Is it Possible to Lazy load in Nuxt?
3 replies
NNuxt
Created by Kepmon on 3/26/2024 in #❓・help
How to check on a client side that a user was redirected from middleware?
Welcome to Nuxt! The useRoute composable has a “redirectedFrom” param. https://nuxt.com/docs/api/composables/use-route This gives you some options, as you could use this composable on your app.vue, your layout, or your index.vue page. Your popup could be triggered by a v-if=“useRoute().redirectedFrom” (I’m on mobile and can’t test but hope this helps point you in the right direction)
7 replies
NNuxt
Created by Orbis on 3/5/2024 in #❓・help
full E2E example
This folder helped me. The full app. https://github.com/nuxt/test-utils/tree/main/examples
2 replies