-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-node.ts
32 lines (27 loc) · 1.12 KB
/
gatsby-node.ts
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
import { GatsbyNode } from "gatsby";
import fetchThumbnail from "./src/utils/fetch-thumbnail";
import { createRedirects } from "./gatsby/createRedirects";
import { createPosts } from "./gatsby/createPosts";
import { createEvents } from "./gatsby/createEvents";
import { createUseCases } from "./gatsby/createUseCases";
import { createTTRSS } from "./gatsby/createTtrss";
import { createLeaves } from "./gatsby/createLeaves";
import { createVideos } from "./gatsby/createVideos";
import { processPictures } from './gatsby/processPictures'
export const createPages: GatsbyNode["createPages"] = async ({
actions,
page,
graphql,
createNodeId,
getCache,
}) => {
const { createPage, createNode, createRedirect } = actions;
createRedirects(createRedirect);
await processPictures({ createNode, createNodeId, getCache, graphql });
await createLeaves({ createPage, graphql });
await createPosts({ createPage, graphql });
await createUseCases({ createPage, graphql });
await createTTRSS({ createPage, graphql });
await createVideos({ createPage, graphql });
// await createEvents({ graphql, createNodeId, getCache });
};