From 75abd82f819dd487c7edab9e0533f43b80aebc90 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 12 Jun 2025 14:01:50 +0200 Subject: [PATCH] Workaround issue with VSCode Nuxtr When the object passed to defineNuxtConfig contains logic for enable devtools option the Nuxtr plugin annoyingly shows an endlessly spinning orb on the statusline. --- nuxt.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 0b57baa..2e99934 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,7 +1,8 @@ // https://nuxt.com/docs/api/configuration/nuxt-config +const enableDevtools = !process.env.DISABLE_DEV_TOOLS export default defineNuxtConfig({ compatibilityDate: '2024-11-01', - devtools: { enabled: !process.env.DISABLE_DEV_TOOLS }, + devtools: { enabled: enableDevtools }, runtimeConfig: { cookieSecretKeyFile: "", vapidSubject: "",