「🔨」 fix: getting from env instead

This commit is contained in:
KeyZox committed 2025-10-14 13:49:23 +02:00
1 parent cf59dd0761
commit 67cae236e1
2 files changed
+2 -2

No files matched your search

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