Skip to content

Commit 3aabbb0

Browse files
authored
Update README.md
1 parent 9de1b14 commit 3aabbb0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,20 @@ If your integration already has a Nuxt module existing, you can import it like s
6363

6464
export default defineNuxtModule({
6565
meta: {
66-
name: "storyblok",
66+
name: 'storyblok',
6767
},
6868
async setup() {
69-
const { resolve } = createResolver(import.meta.url);
70-
addImportsDir(resolve("composables")); // enable auto import for components/composables/types
69+
const { resolve } = createResolver(import.meta.url)
70+
addComponentsDir({
71+
path: resolve('components'), // enable auto import for components/composables/types
72+
})
7173

7274
await installModule('@storyblok/nuxt', {
73-
apiKey: '<YOUR_API_KEY>'
75+
accessToken: '<YOUR_API_KEY>',
76+
componentsDir: '~/components',
7477
// more configuration options
7578
})
76-
}
79+
},
7780
})
7881
```
7982

@@ -123,4 +126,4 @@ This project wouldn't be live without a help of amazing people below:
123126
5. Sebastien Chopin
124127
6. Sarah Moriceu
125128
7. ScottyZen -> Check out [WooNuxt](https://woonuxt.com/) 🚀
126-
8. Rylan Harper -> Check out [Nitrogen](https://github.com/rylanharper/Nitrogen) 🚀
129+
8. Rylan Harper -> Check out [Nitrogen](https://github.com/rylanharper/Nitrogen) 🚀

0 commit comments

Comments
 (0)