update workflow
All checks were successful
Release Build / build-docker (push) Successful in 9s
Release Build / build-android-and-release (push) Successful in 2m7s

This commit is contained in:
Rene Kievits
2025-12-24 08:54:39 +01:00
parent 0fc26f295c
commit ab9185721b

View File

@@ -12,7 +12,8 @@ await connectDB();
const allowedOrigins = [ const allowedOrigins = [
process.env.SERVER_EXT_ACCESS, process.env.SERVER_EXT_ACCESS,
process.env.SERVER_INT_ACCESS process.env.SERVER_INT_ACCESS,
'capacitor://localhost',
]; ];
await fastify.register(cors, { await fastify.register(cors, {
@@ -22,7 +23,7 @@ await fastify.register(cors, {
}); });
await fastify.register(jwt, { await fastify.register(jwt, {
secret: JWT_SECRET secret: process.env.JWT_SECRET
}); });
fastify.decorate('authenticate', async function (req, reply) { fastify.decorate('authenticate', async function (req, reply) {