-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy path_app.js
34 lines (29 loc) · 842 Bytes
/
_app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import "../styles/tailwind.css";
import { storyblokInit, apiPlugin } from "@storyblok/react";
import BlogPost from "../components/BlogPost";
import Feature from "../components/Feature";
import FeaturedPosts from "../components/FeaturedPosts";
import Grid from "../components/Grid";
import Page from "../components/Page";
import PostsList from "../components/PostsList";
import Teaser from "../components/Teaser";
import Text from "../components/Text";
const components = {
feature: Feature,
"featured-posts": FeaturedPosts,
grid: Grid,
page: Page,
post: BlogPost,
"selected-posts": PostsList,
teaser: Teaser,
text: Text,
};
storyblokInit({
accessToken: "YOUR_PREVIEW_TOKEN",
use: [apiPlugin],
components,
});
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />;
}
export default MyApp;