import { storyblokInit, apiPlugin } from "@storyblok/react";
import Feature from "./Feature.js"
const components = {
feature: Feature,
//Add your components here
};
storyblokInit({
accessToken: "DUMMY_TOKEN",
use: [apiPlugin],
components,
});
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />;
}
export default MyApp;
Storyblok Init - NextJS-React
Usage Instructions
Use the following snippet in pages/_app.js
Shortcut: storyblok.nextjs.init
0 Comments
Add Comment
Log in to add a comment