File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/nuxt/src/app/composables Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export function useFetch<
147
147
watch : watch === false ? [ ] : [ _fetchOptions , _request , ...( watch || [ ] ) ] ,
148
148
}
149
149
150
- if ( import . meta. dev && import . meta. client ) {
150
+ if ( import . meta. dev && import . meta. server ) {
151
151
// @ts -expect-error private property
152
152
_asyncDataOptions . _functionName = opts . _functionName || 'useFetch'
153
153
}
@@ -230,7 +230,7 @@ export function useLazyFetch<
230
230
) {
231
231
const [ opts = { } , autoKey ] = typeof arg1 === 'string' ? [ { } , arg1 ] : [ arg1 , arg2 ]
232
232
233
- if ( import . meta. dev && import . meta. client ) {
233
+ if ( import . meta. dev && import . meta. server ) {
234
234
// @ts -expect-error private property
235
235
opts . _functionName ||= 'useLazyFetch'
236
236
}
You can’t perform that action at this time.
0 commit comments