Fix config.json path in PDF upload - use absolute path with process.cwd()

This commit is contained in:
Torsten Schulz (local)
2025-10-22 14:10:07 +02:00
parent 57280be256
commit e77963b13d
5 changed files with 109 additions and 109 deletions

View File

@@ -62,7 +62,7 @@ export default defineEventHandler(async (event) => {
`
// Config aktualisieren
const configPath = 'server/data/config.json'
const configPath = path.join(process.cwd(), 'server/data/config.json')
const configData = JSON.parse(await fs.readFile(configPath, 'utf-8'))
configData.seiten.satzung = {