From 25793fecb8f57465d6e0e58b74c2dc467e4d46d6 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sat, 31 May 2025 22:14:06 +0200 Subject: [PATCH] Add DISABLE_DEV_TOOLS env to disable Nuxt dev tools The dev tools built into Nuxt take up way too much resources to run on low end hardware. Add config to disable it. --- nuxt.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 975d6c7..0b57baa 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,7 +1,7 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ compatibilityDate: '2024-11-01', - devtools: { enabled: true }, + devtools: { enabled: !process.env.DISABLE_DEV_TOOLS }, runtimeConfig: { cookieSecretKeyFile: "", vapidSubject: "",