Skip to content

Commit 2d8c847

Browse files
authored
Simplify Nuxt 3 usage documentation
1 parent 1f0a935 commit 2d8c847

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ See [MapOptions](https://developers.google.com/maps/documentation/javascript/ref
238238

239239
Many other components are also supported. Checkout [docs](https://vue-map.netlify.app) for more.
240240

241-
### Nuxt 3 usage
241+
## Nuxt 3 usage
242242

243243
First add `@fawmi/vue-google-maps` to `build.transpile` property in your `nuxt.config.ts`.
244244

@@ -250,7 +250,7 @@ export default defineNuxtConfig({
250250
})
251251
```
252252

253-
Then create a plugin `~/plugin/vueGoogleMaps.ts`, you can store the API key in publicRuntimeConfig, checkout [nuxt docs](https://nuxtjs.org/docs/directory-structure/nuxt-config#runtimeconfig).
253+
Then create a plugin `~/plugin/vueGoogleMaps.ts`.
254254

255255
```ts
256256
import { defineNuxtPlugin } from '#app'
@@ -259,7 +259,7 @@ import VueGoogleMaps from '@fawmi/vue-google-maps'
259259
export default defineNuxtPlugin((nuxtApp) => {
260260
nuxtApp.vueApp.use(VueGoogleMaps, {
261261
load: {
262-
key: nuxtApp.$config.googleApiKey,
262+
key: 'YOUR_GOOGLE_API_KEY',
263263
},
264264
})
265265
})

0 commit comments

Comments
 (0)