update manifest
Deploy app frontend / app frontend (push) Successful in 1m29s

This commit is contained in:
2024-12-05 14:11:11 +02:00
parent 463ad35737
commit 0967689a8f
2 changed files with 16 additions and 13 deletions
+3 -2
View File
@@ -127,9 +127,10 @@ export default defineConfig(({ mode }) => {
'/manifest.json': {
async handler(req, res) {
const { default: manifestJSON } = await import('./src/manifest.json')
const result = { ...manifestJSON, ...manifest, id: `//${req.headers.host}` }
res.statusCode = 200
res.setHeader('Content-Type', 'text/html')
res.end(JSON.stringify({ ...manifestJSON, ...manifest }, null, 2))
res.setHeader('Content-Type', 'application/json;charset=utf-8')
res.end(JSON.stringify(result, null, 2))
},
} satisfies RouteConfig,
},