qwik-cms/libs/utils/utils.js

14 lines
336 B
JavaScript
Raw Permalink Normal View History

2021-08-09 16:55:53 +02:00
import fs from 'fs'
import { generateSiteMap } from './siteMap.js'
const ConfigFile = fs.readFileSync('./config.json')
const Config = JSON.parse(ConfigFile)
// Generate some utilities
export let utils = {
generate: async () =>
utils.values = {
siteMap: await generateSiteMap(Config)
},
values: {}
}