fix path
All checks were successful
Build and push image for doorman / docker (push) Successful in 1m36s
Build and push image for doorman / deploy-portainer (push) Successful in 25s

This commit is contained in:
Martin Dimitrov 2024-03-02 14:40:15 -08:00
parent 91a6016d3d
commit c956db367f
2 changed files with 2 additions and 1 deletions

View File

@ -61,5 +61,6 @@ export const replaceDoorRandomKey = async (door: string) => {
await client.put(doorRotatingKey(door), newKey);
const message = `New key for door ${door}! Unlock link: ${Bun.env.BASE_DOMAIN}/door/${door}?rotatingKey=${newKey}`;
console.log(message);
await fetch(Bun.env.ROTATING_KEY_NTFY, { method: "POST", body: message });
}

View File

@ -25,7 +25,7 @@ app.use(express.static("dist"));
app.use('/api/door', DoorRouter);
app.get("*", (req, res) => {
res.sendFile(path.join(__dirname, "dist", "index.html"));
res.sendFile(path.join(__dirname, "..", "dist", "index.html"));
});
app.listen(5000, async () => {