Ryan The Temp
Explore posts from serversWhich of these is the correct way to fetch?
When is the correct way to do a $fetch with parameters:
A: data is:
globalThis.Ref<unknown, unknown>
B: data is: globalThis.Ref<Simplify<SerializeObject<{..... />
(correct)
A works if I just cast everything to any, but I lose all types.
B also works, but it looks weird that I have to have an :id
and declare a params
😕3 replies
Type errors being thrown from `nuxt-content`
I'm not sure if this is
nuxt-content
related or not. It could be nuxt and/or vue, since both got a version bump.
during nuxi typecheck
I get these errors:
Looking at the source code for that file here: https://github.com/nuxt-modules/mdc/blob/main/src/runtime/components/prose/ProseH6.vue
its pertty straight foward.
I'm thinking is prop
access like that not supported anymore?1 replies
How do you set the cookie domain?
I've setup a hosts entry for local development for
app.local
Now I'm running nuxt with nuxt dev --host app.local
The problem is that when I use setCookie
from h3 its still creating the cookie for the localhost
domain. Is there a way to change this?3 replies
Build hangs after success
When Run
nuxt build
it seems to hang after it finishes. The last output is:
#13 158.8 [success] [nitro] You can preview this build using node .output/server/index.mjs
If I manually kill the process with CMD+C
and run nuxt preview
i'm able to run the built app.
The problem is that in the CI environment, it would just hang forever and eventually timeout.
Any idea what is the problem? Can turn on verbose logging to see what exactly is hanging on?1 replies