qwik-site/libs/utils/utils.js

14 lines
336 B
JavaScript

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: {}
}