We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87b277b commit 9686c99Copy full SHA for 9686c99
services/backend-api/src/app.ts
@@ -41,8 +41,6 @@ declare module "fastify" {
41
export async function createApp(
42
container: Container,
43
): Promise<FastifyInstance> {
44
- const isProduction = container.config.NODE_ENV === "production";
45
-
46
const app = Fastify({
47
logger: false,
48
trustProxy: true,
@@ -85,7 +83,7 @@ export async function createApp(
85
83
cookie: {
86
84
path: "/",
87
httpOnly: true,
88
- secure: isProduction,
+ secure: container.config.BACKEND_API_SESSION_COOKIE_SECURE,
89
},
90
});
91
0 commit comments