Upgrade dependencies

This commit is contained in:
Dennis Reimann
2023-03-09 07:13:53 +01:00
parent 0d6bb7a523
commit 235fd1680a
3 changed files with 372 additions and 313 deletions

View File

@@ -1,12 +1,12 @@
const pug = require('pug')
const glob = require('glob')
const { globSync } = require('glob')
const { writeFileSync } = require('fs')
const { resolve } = require('path')
const { DEPLOY_PRIME_URL, URL } = process.env
const BASE = DEPLOY_PRIME_URL || URL || 'https://einundzwanzig.space'
const html = glob.sync(resolve(__dirname, '..', `dist/**/*.html`))
const html = globSync(resolve(__dirname, '..', `dist/**/*.html`))
const pages = html.map(file => file.replace(/.*\/dist/, BASE).replace(/index\.html$/, '')).filter(f => !f.endsWith('/kontakt/') && !f.endsWith('/datenschutz/'))
const now = (new Date()).toISOString()
const file = resolve(__dirname, '..', `src/sitemap.pug`)