Read vapid details from runtime config

Use the useRuntimeConfig interface to read vapid details on the server
side.  This is a more portale way to deal with loading data from the
environment in Nuxt.js.
This commit is contained in:
Hornwitser 2025-05-20 00:22:28 +02:00
parent 742be649eb
commit c986d939ec
3 changed files with 27 additions and 8 deletions

View file

@ -33,5 +33,5 @@ export default defineEventHandler(async (event) => {
await broadcastUpdate(schedule);
await writeSchedule(schedule);
if (timeChanged)
await sendPush(`New time for ${name}`, `${name} will now start at ${start}`);
await sendPush(event, `New time for ${name}`, `${name} will now start at ${start}`);
});