qwik-site/libs/utils/utils.js

14 lines
336 B
JavaScript
Raw Normal View History

2021-08-09 17:44: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: {}
}