From e477609aae85a8924bb0ed9fabd8235faf5973b5 Mon Sep 17 00:00:00 2001 From: Abdou TOP Date: Tue, 16 Jun 2026 09:07:33 +0000 Subject: [PATCH] fix(env): read WITH_DEVTOOLS environment variable instead of using a literal string --- api/deno.json | 2 +- api/env.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/deno.json b/api/deno.json index 8909ea0..e66b7d9 100644 --- a/api/deno.json +++ b/api/deno.json @@ -5,7 +5,7 @@ "@std/streams": "jsr:@std/streams@^1.1.1" }, "name": "@01edu/api", - "version": "0.2.9", + "version": "0.2.10", "license": "MIT", "exports": { "./context": "./context.ts", diff --git a/api/env.ts b/api/env.ts index dcaf073..3c1541f 100644 --- a/api/env.ts +++ b/api/env.ts @@ -133,7 +133,7 @@ export const DEVTOOL_ACCESS_TOKEN: string = ENV('DEVTOOL_ACCESS_TOKEN', '') * } * ``` */ -export const WITH_DEVTOOLS: boolean = truthy('WITH_DEVTOOLS') +export const WITH_DEVTOOLS: boolean = truthy(ENV('WITH_DEVTOOLS', '')) /** * Disable query debug instrumentation when set in the environment.