Cody Bontecou
Cody Bontecou
Explore posts from servers
NNuxt
Created by Cody Bontecou on 5/6/2024 in #❓・help
Test Utils + Vitest + MSW - potential caching issue
Ah interesting, all of my mocked calls have been client-side requests which have worked fine (outside of this network override problem). I'm using fetch for my requests which I believe Nuxt isn't tampering with on the client-side.
4 replies
NNuxt
Created by Cody Bontecou on 5/2/2024 in #❓・help
Where to deploy with long-polling functions
I'm not set on relying on a serverless provider, I've just honestly never deployed a Nuxt application outside of Netlify/Vercel and not familiar with alternative deployment approaches.
7 replies
NNuxt
Created by Cody Bontecou on 5/2/2024 in #❓・help
Where to deploy with long-polling functions
Thanks Alex. I started playing with that API (which is super nice btw), but ran into issues with dynamically managing when the task should be run: https://discord.com/channels/473401852243869706/1235506628544040981.
7 replies
NNuxt
Created by Cody Bontecou on 5/2/2024 in #❓・help
Where to deploy with long-polling functions
Sorry, just to clarify, this is within a Nuxt application and ideally, I can deploy it bundled together.
7 replies
NNuxt
Created by Cody Bontecou on 4/11/2024 in #❓・help
What is the recommended route to using a 3rd-party composable that relies on the window object?
Hey @Eric, you're right, it's purely client-side. Moving it to a .client.vue file and swapping ssr back to true does the trick.. kind of. I had to pull the libraries code down and put it into my codebase to work instead of being able to rely on the package from npm. Not sure where the disconnect is happening.
4 replies
NNuxt
Created by Cody Bontecou on 2/28/2024 in #❓・help
Is there a useFetch alternative that allows me to call the server function without a string?
Oh, nice. At first glance that seems to do the trick.
3 replies