🔨」 fix: getting from env instead

This commit is contained in:
2025-10-14 13:49:23 +02:00
parent cf59dd0761
commit 67cae236e1
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export async function gLogCallback(request, reply, fastify) {
path: '/',
secure: env !== 'development',
sameSite: 'lax',
}).redirect('/');
}).redirect(process.env.CALLBACK_REDIR);
} catch (error) {
fastify.log.error(error);
reply.code(500).send({ error: 'Internal server error' });

View File

@ -54,7 +54,7 @@ export async function gRegisterCallback(request, reply, fastify) {
path: '/',
secure: env !== 'development',
sameSite: 'lax',
}).redirect('/');
}).redirect(process.env.CALLBACK_REDIR);
} catch (error) {
fastify.log.error(error);
reply.code(500).send({ error: 'Internal server error' });