File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,20 @@ If your integration already has a Nuxt module existing, you can import it like s
6363
6464export 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:
1231265 . Sebastien Chopin
1241276 . Sarah Moriceu
1251287 . 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 ) 🚀
You can’t perform that action at this time.
0 commit comments