Fix config.json path in PDF upload - use absolute path with process.cwd()
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user