Skip to content

Commit 66524df

Browse files
committed
docs: fixes configuration docs
1 parent 3e9e8c9 commit 66524df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/content/1.setup/2.configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ export default defineNuxtConfig({
4747
```
4848
or:
4949
```sh
50-
NUXT_OPEN_FETCH_PETS_SCHEMA=https://petstore3.swagger.io/api/v3/openapi.json
51-
NUXT_OPEN_FETCH_PETS_BASE_URL=https://petstore3.swagger.io/api/v3/
50+
NUXT_PUBLIC_OPEN_FETCH_PETS_SCHEMA=https://petstore3.swagger.io/api/v3/openapi.json
51+
NUXT_PUBLIC_OPEN_FETCH_PETS_BASE_URL=https://petstore3.swagger.io/api/v3/
5252
```

playground/app.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ref, useApi } from '#imports'
2+
import { ref, usePets } from '#imports'
33
44
// const { $api } = useNuxtApp()
55
@@ -18,7 +18,7 @@ const petId = ref(1)
1818
// },
1919
// })
2020
21-
const { data, execute } = await useApi('/pet/{petId}', {
21+
const { data, execute } = await usePets('/pet/{petId}', {
2222
immediate: false,
2323
path: {
2424
petId,

0 commit comments

Comments
 (0)