2021-12-11 18:19:20 +01:00
|
|
|
import { prebuildMdx } from './mdx.mjs'
|
2021-12-12 12:04:38 +01:00
|
|
|
import { prebuildStrapi } from './strapi.mjs'
|
2021-12-12 18:00:08 +01:00
|
|
|
import { prebuildNavigation } from './navigation.mjs'
|
2021-12-11 18:19:20 +01:00
|
|
|
|
|
|
|
const SITE = process.env.SITE
|
|
|
|
|
|
|
|
const run = async () => {
|
2021-12-12 18:00:08 +01:00
|
|
|
const mdxPages = await prebuildMdx(SITE)
|
|
|
|
const [posts, authors] = await prebuildStrapi(SITE)
|
|
|
|
await prebuildNavigation(mdxPages, posts, SITE)
|
|
|
|
console.log()
|
2021-12-11 18:19:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
run()
|